python312Packages.pygtail: 0.8.0 -> 0.14.0 (#353645)

This commit is contained in:
Theodore Ni
2024-11-05 14:25:53 -08:00
committed by GitHub
@@ -2,25 +2,27 @@
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pygtail";
version = "0.8.0";
format = "setuptools";
version = "0.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "bgreenlee";
repo = pname;
repo = "pygtail";
rev = version;
sha256 = "1f8qlijiwn10jxg1bsi6q42fznbg8rw039yaxfh6rzbaj2gaxbz1";
hash = "sha256-TlXTlxeGDd+elGpMjxcJCmRuJmp5k9xj6MrViRzcST4=";
};
# 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
'';
build-system = [ setuptools ];
pythonImportsCheck = [ "pygtail" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Library for reading log file lines that have not been read";