python312Packages.python-stdnum: refactor

This commit is contained in:
Fabian Affolter 2024-03-19 09:18:31 +01:00 committed by GitHub
parent b3f1735123
commit 69312ee9ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,13 +3,14 @@
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, zeep
}:
buildPythonPackage rec {
pname = "python-stdnum";
version = "1.20";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -20,9 +21,13 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" ""
--replace-fail " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" ""
'';
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];