nixpkgs/pkgs/development/python-modules/pygtail/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

32 lines
686 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
}:
buildPythonPackage rec {
pname = "pygtail";
version = "0.8.0";
format = "setuptools";
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; {
description = "Library for reading log file lines that have not been read";
mainProgram = "pygtail";
license = licenses.gpl2Plus;
homepage = "https://github.com/bgreenlee/pygtail";
};
}