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