504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
33 lines
723 B
Nix
33 lines
723 B
Nix
{ 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 = with lib; {
|
|
description = "Python implementation implementation of GNU tail and head";
|
|
homepage = "https://github.com/six8/pytailer";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|