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