1{ lib, buildPythonPackage, fetchFromGitHub, regex, pytest }:
2
3buildPythonPackage rec {
4 pname = "pygrok";
5 version = "1.0.0";
6
7 src = fetchFromGitHub {
8 owner = "garyelephant";
9 repo = "pygrok";
10 rev = "v${version}";
11 sha256 = "07487rcmv74srnchh60jp0vg46g086qmpkaj8gxqhp9rj47r1s4m";
12 };
13
14 propagatedBuildInputs = [ regex ];
15
16 checkInputs = [ pytest ];
17 checkPhase = ''
18 pytest
19 '';
20
21 meta = with lib; {
22 maintainers = with maintainers; [ winpat ];
23 description = "A python implementation of jordansissel's grok regular expression library";
24 homepage = "https://github.com/garyelephant/pygrok";
25 license = licenses.mit;
26 platforms = platforms.linux;
27 };
28}