1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

python312Packages.lcgit: refactor

This commit is contained in:
Fabian Affolter 2024-08-07 09:12:24 +02:00 committed by GitHub
parent 7d91fe1fe1
commit 37f62f065f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,12 +4,13 @@
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "lcgit";
version = "1.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -22,9 +23,11 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov" ""
--replace-fail " --cov" ""
'';
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "lcgit" ];