depot/third_party/nixpkgs/pkgs/development/python-modules/lcgit/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

42 lines
902 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "lcgit";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "cisagov";
repo = "lcgit";
rev = "refs/tags/v${version}";
hash = "sha256-aMwjgN9//jAnTYnbJJvQyfE/f+5QosKxF1l4vF+3myc=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace-fail " --cov" ""
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "lcgit" ];
meta = with lib; {
description = "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 ];
};
}