83405b6dd2
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
42 lines
861 B
Nix
42 lines
861 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lcgit";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cisagov";
|
|
repo = "lcgit";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-MYRqlfz2MRayBT7YGZmcyqJdoDRfENmgxk/TmhyoAlQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pytest.ini \
|
|
--replace " --cov" ""
|
|
'';
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"lcgit"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A pythonic Linear Congruential Generator iterator";
|
|
homepage = "https://github.com/cisagov/lcgit";
|
|
changelog = "https://github.com/cisagov/lcgit/releases/tag/v${version}";
|
|
license = licenses.cc0;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|