biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / lcgit / default.nix
blob91258c86a08b86019213c88ab986e3a7a5911888
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pytestCheckHook,
6   pythonOlder,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "lcgit";
12   version = "1.0.0";
13   pyproject = true;
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "cisagov";
19     repo = "lcgit";
20     rev = "refs/tags/v${version}";
21     hash = "sha256-aMwjgN9//jAnTYnbJJvQyfE/f+5QosKxF1l4vF+3myc=";
22   };
24   postPatch = ''
25     substituteInPlace pytest.ini \
26       --replace-fail " --cov" ""
27   '';
29   build-system = [ setuptools ];
31   nativeCheckInputs = [ pytestCheckHook ];
33   pythonImportsCheck = [ "lcgit" ];
35   meta = with lib; {
36     description = "Pythonic Linear Congruential Generator iterator";
37     homepage = "https://github.com/cisagov/lcgit";
38     changelog = "https://github.com/cisagov/lcgit/releases/tag/v${version}";
39     license = licenses.cc0;
40     maintainers = with maintainers; [ fab ];
41   };