1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "lcgit";
11 version = "0.2.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "cisagov";
18 repo = "lcgit";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-bLeblC68+j+YwvgnV1wgJiWm/jxZFzhTSDwXpoSzUTg=";
21 };
22
23 postPatch = ''
24 substituteInPlace pytest.ini \
25 --replace " --cov" ""
26 '';
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "lcgit" ];
31
32 meta = with lib; {
33 description = "A pythonic Linear Congruential Generator iterator";
34 homepage = "https://github.com/cisagov/lcgit";
35 changelog = "https://github.com/cisagov/lcgit/releases/tag/v${version}";
36 license = licenses.cc0;
37 maintainers = with maintainers; [ fab ];
38 };
39}