pythonPackages.zeep: fix build with pytest 4
This commit is contained in:
parent
f8aa6f1235
commit
174fe8470a
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue