pygrok: init at 1.0.0

This commit is contained in:
Patrick Winter 2019-12-06 16:21:26 +01:00 committed by Jon
parent 484613c1a1
commit 2d61c4c8fe
2 changed files with 30 additions and 0 deletions

View File

@ -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;
};
}

View File

@ -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 { };