diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-24 20:49:02 +0100 |
|---|---|---|
| committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-24 20:49:02 +0100 |
| commit | 3c86e6f249181d80c53fa5ca1db974523ffcfb77 (patch) | |
| tree | 09f5e2ffdf925841ca2d2d05163622cc6c4048c2 /pkgs/development/python-modules/python-stdnum | |
| parent | c73fbbd79ee5875eea13d80b1cae00f6e8db44e3 (diff) | |
python310Packages.python-stdnum: remove coverage
- add optional-dependencies
Diffstat (limited to 'pkgs/development/python-modules/python-stdnum')
| -rw-r--r-- | pkgs/development/python-modules/python-stdnum/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-stdnum/default.nix b/pkgs/development/python-modules/python-stdnum/default.nix index 1ed3ffd6649b..19142bc13fb8 100644 --- a/pkgs/development/python-modules/python-stdnum/default.nix +++ b/pkgs/development/python-modules/python-stdnum/default.nix @@ -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" ]; |
