aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pygrok/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pygrok/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pygrok/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pygrok/default.nix b/nixpkgs/pkgs/development/python-modules/pygrok/default.nix
new file mode 100644
index 00000000000..8f694a117fe
--- /dev/null
+++ b/nixpkgs/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;
+ };
+}