From 2d61c4c8fe2947aea3be364669d34c200c80c44c Mon Sep 17 00:00:00 2001 From: Patrick Winter Date: Fri, 6 Dec 2019 16:21:26 +0100 Subject: [PATCH] pygrok: init at 1.0.0 --- .../python-modules/pygrok/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/python-modules/pygrok/default.nix diff --git a/pkgs/development/python-modules/pygrok/default.nix b/pkgs/development/python-modules/pygrok/default.nix new file mode 100644 index 000000000000..8f694a117fe5 --- /dev/null +++ b/pkgs/development/python-modules/pygrok/default.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, buildPythonPackage, fetchFromGitHub, regex, pytest }: + +buildPythonPackage rec { + pname = "pygrok"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "garyelephant"; + repo = "pygrok"; + rev = "v${version}"; + sha256 = "07487rcmv74srnchh60jp0vg46g086qmpkaj8gxqhp9rj47r1s4m"; + }; + + propagatedBuildInputs = [ regex ]; + + checkInputs = [ pytest ]; + checkPhase = '' + pytest + ''; + + meta = with lib; { + maintainers = with maintainers; [ winpat ]; + description = "A python implementation of jordansissel's grok regular expression library"; + homepage = "https://github.com/garyelephant/pygrok"; + license = licenses.mit; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d3944b057a30..115f3286edb6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3505,6 +3505,8 @@ in { regex = callPackage ../development/python-modules/regex { }; + pygrok = callPackage ../development/python-modules/pygrok { }; + regional = callPackage ../development/python-modules/regional { }; ratelimiter = callPackage ../development/python-modules/ratelimiter { };