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