1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "pygtail";
11 version = "0.14.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "bgreenlee";
16 repo = "pygtail";
17 rev = version;
18 hash = "sha256-TlXTlxeGDd+elGpMjxcJCmRuJmp5k9xj6MrViRzcST4=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonImportsCheck = [ "pygtail" ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 meta = with lib; {
28 description = "Library for reading log file lines that have not been read";
29 mainProgram = "pygtail";
30 license = licenses.gpl2Plus;
31 homepage = "https://github.com/bgreenlee/pygtail";
32 };
33}