1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 python,
6}:
7
8buildPythonPackage rec {
9 pname = "tailer";
10 version = "0.4.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "six8";
15 repo = "pytailer";
16 rev = version;
17 sha256 = "1s5p5m3q9k7r1m0wx5wcxf20xzs0rj14qwg1ydwhf6adr17y2w5y";
18 };
19
20 checkPhase = ''
21 runHook preCheck
22 ${python.interpreter} -m doctest -v src/tailer/__init__.py
23 runHook postCheck
24 '';
25
26 pythonImportsCheck = [ "tailer" ];
27
28 meta = with lib; {
29 description = "Python implementation implementation of GNU tail and head";
30 mainProgram = "pytail";
31 homepage = "https://github.com/six8/pytailer";
32 license = with licenses; [ mit ];
33 maintainers = with maintainers; [ fab ];
34 };
35}