2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pygtail";
|
|
|
|
version = "0.8.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bgreenlee";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1f8qlijiwn10jxg1bsi6q42fznbg8rw039yaxfh6rzbaj2gaxbz1";
|
|
|
|
};
|
|
|
|
|
|
|
|
# remove at next bump, tag is one commit early for 0.8.0
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pygtail/core.py \
|
|
|
|
--replace 0.7.0 0.8.0
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Library for reading log file lines that have not been read";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pygtail";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
homepage = "https://github.com/bgreenlee/pygtail";
|
|
|
|
};
|
|
|
|
}
|