a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
28 lines
702 B
Nix
28 lines
702 B
Nix
{ 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 ];
|
|
|
|
nativeCheckInputs = [ 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;
|
|
};
|
|
}
|