summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tailer/default.nix
blob: f5157789139726dab757448eeb5535bf99aa0361 (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
34
35
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  python,
}:

buildPythonPackage rec {
  pname = "tailer";
  version = "0.4.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "six8";
    repo = "pytailer";
    rev = version;
    sha256 = "1s5p5m3q9k7r1m0wx5wcxf20xzs0rj14qwg1ydwhf6adr17y2w5y";
  };

  checkPhase = ''
    runHook preCheck
    ${python.interpreter} -m doctest -v src/tailer/__init__.py
    runHook postCheck
  '';

  pythonImportsCheck = [ "tailer" ];

  meta = {
    description = "Python implementation implementation of GNU tail and head";
    mainProgram = "pytail";
    homepage = "https://github.com/six8/pytailer";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [ fab ];
  };
}