1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pytest-cov-stub,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "lcgit";
13 version = "2.0.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "cisagov";
20 repo = "lcgit";
21 tag = "v${version}";
22 hash = "sha256-unw5xY5iZlVrV01hchHS3Ar+zpF7awTAutcqndKH0Ic=";
23 };
24
25 build-system = [ setuptools ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 pytest-cov-stub
30 ];
31
32 pythonImportsCheck = [ "lcgit" ];
33
34 meta = with lib; {
35 description = "Pythonic Linear Congruential Generator iterator";
36 homepage = "https://github.com/cisagov/lcgit";
37 changelog = "https://github.com/cisagov/lcgit/releases/tag/${src.tag}";
38 license = licenses.cc0;
39 maintainers = with maintainers; [ fab ];
40 };
41}