linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pygtail / default.nix
blob492a36c50a253bab416af54282ca502aaebd41f7
1 { lib, buildPythonPackage, fetchFromGitHub }:
3 buildPythonPackage rec {
4   pname = "pygtail";
5   version = "0.8.0";
7   src = fetchFromGitHub {
8     owner = "bgreenlee";
9     repo = pname;
10     rev = version;
11     sha256 = "1f8qlijiwn10jxg1bsi6q42fznbg8rw039yaxfh6rzbaj2gaxbz1";
12   };
14   # remove at next bump, tag is one commit early for 0.8.0
15   postPatch = ''
16     substituteInPlace pygtail/core.py \
17       --replace 0.7.0 0.8.0
18   '';
20   meta = with lib; {
21     description = "A library for reading log file lines that have not been read";
22     license = licenses.gpl2Plus;
23     homepage = "https://github.com/bgreenlee/pygtail";
24   };