summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pygtail/default.nix
blob: 7cc002c9c2f3dc4dff9317df5da510b5a213ad14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pygtail";
  version = "0.14.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bgreenlee";
    repo = "pygtail";
    rev = version;
    hash = "sha256-TlXTlxeGDd+elGpMjxcJCmRuJmp5k9xj6MrViRzcST4=";
  };

  build-system = [ setuptools ];

  pythonImportsCheck = [ "pygtail" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Library for reading log file lines that have not been read";
    mainProgram = "pygtail";
    license = lib.licenses.gpl2Plus;
    homepage = "https://github.com/bgreenlee/pygtail";
  };
}