pythonPackages.zeep: fix build with pytest 4

This commit is contained in:
Mario Rodas 2019-07-13 04:22:00 -05:00 committed by Frederik Rietdijk
parent f8aa6f1235
commit 174fe8470a

View File

@ -18,7 +18,7 @@
, freezegun , freezegun
, mock , mock
, pretend , pretend
, pytest_3 , pytest
, pytestcov , pytestcov
, requests-mock , requests-mock
, aioresponses , aioresponses
@ -54,12 +54,15 @@ buildPythonPackage rec {
mock mock
pretend pretend
pytestcov pytestcov
pytest_3 pytest
requests-mock requests-mock
] ++ lib.optional isPy3k aioresponses; ] ++ lib.optional isPy3k aioresponses;
checkPhase = '' checkPhase = ''
runHook preCheck runHook preCheck
# fix compatibility with pytest 4
substituteInPlace tests/conftest.py \
--replace 'request.node.get_marker("requests")' 'request.node.get_closest_marker("requests")'
# ignored tests requires xmlsec python module # ignored tests requires xmlsec python module
HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py
runHook postCheck runHook postCheck