python310Packages.python-stdnum: remove coverage

- add optional-dependencies
This commit is contained in:
Fabian Affolter 2023-01-24 20:49:02 +01:00
parent c73fbbd79e
commit 3c86e6f249

View File

@ -3,6 +3,7 @@
, fetchPypi
, pytestCheckHook
, pythonOlder
, zeep
}:
buildPythonPackage rec {
@ -17,10 +18,21 @@ buildPythonPackage rec {
hash = "sha256-vMdj2cSa4j2l0remhtX9He7J2QUTQRYKENGscjomvsA=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=stdnum --cov-report=term-missing:skip-covered --cov-report=html" ""
'';
nativeCheckInputs = [
pytestCheckHook
];
passthru.optional-dependencies = {
SOAP = [
zeep
];
};
pythonImportsCheck = [
"stdnum"
];