@@ -0,0 +1,25 @@
1+{ lib, buildPythonPackage, fetchFromGitHub }:
2+
3+buildPythonPackage rec {
4+ pname = "pygtail";
5+ version = "0.8.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "bgreenlee";
9+ repo = pname;
10+ rev = version;
11+ sha256 = "1f8qlijiwn10jxg1bsi6q42fznbg8rw039yaxfh6rzbaj2gaxbz1";
12+ };
13+
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+ '';
19+
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+ };
25+}