Unverified Commit eff31b76 authored by Theodore Ni's avatar Theodore Ni Committed by GitHub
Browse files

python312Packages.pygtail: 0.8.0 -> 0.14.0 (#353645)

parents a5e267e5 6b659580
Loading
Loading
Loading
Loading
+11 −9
Original line number Diff line number Diff line
@@ -2,25 +2,27 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pygtail";
  version = "0.8.0";
  format = "setuptools";
  version = "0.14.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bgreenlee";
    repo = pname;
    repo = "pygtail";
    rev = version;
    sha256 = "1f8qlijiwn10jxg1bsi6q42fznbg8rw039yaxfh6rzbaj2gaxbz1";
    hash = "sha256-TlXTlxeGDd+elGpMjxcJCmRuJmp5k9xj6MrViRzcST4=";
  };

  # 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
  '';
  build-system = [ setuptools ];

  pythonImportsCheck = [ "pygtail" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Library for reading log file lines that have not been read";