depot/third_party/nixpkgs/pkgs/development/python-modules/pygtail/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

25 lines
627 B
Nix

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