Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5}: 6 7buildPythonPackage rec { 8 pname = "pygtail"; 9 version = "0.8.0"; 10 format = "setuptools"; 11 12 src = fetchFromGitHub { 13 owner = "bgreenlee"; 14 repo = pname; 15 rev = version; 16 sha256 = "1f8qlijiwn10jxg1bsi6q42fznbg8rw039yaxfh6rzbaj2gaxbz1"; 17 }; 18 19 # remove at next bump, tag is one commit early for 0.8.0 20 postPatch = '' 21 substituteInPlace pygtail/core.py \ 22 --replace 0.7.0 0.8.0 23 ''; 24 25 meta = with lib; { 26 description = "Library for reading log file lines that have not been read"; 27 mainProgram = "pygtail"; 28 license = licenses.gpl2Plus; 29 homepage = "https://github.com/bgreenlee/pygtail"; 30 }; 31}