@@ -1,88 +1,67 @@
11{ fetchPypi
22, lib
33, buildPythonPackage
4−, python
54, isPy3k
65, appdirs
6+, attrs
77, cached-property
88, defusedxml
99, isodate
1010, lxml
11−, pytz
11+, requests
1212, requests_toolbelt
1313, six
14+, pytz
15+, tornado
16+, aiohttp
1417# test dependencies
1518, freezegun
1619, mock
17−, nose
1820, pretend
19−, pytest
21+, pytest_3
2022, pytestcov
2123, requests-mock
22−, tornado
23−, attrs
24+, aioresponses
2425}:
2526
2627buildPythonPackage rec {
2728 pname = "zeep";
28− version = "3.2.0";
29+ version = "3.3.0";
2930
3031 src = fetchPypi {
3132 inherit pname version;
32− sha256 = "0bfpdy3hi8aa45piwg5gj0xxa187v13d66qr1ki73qn7c6rbizp5";
33+ sha256 = "144dk7gw93l4amrwmp5vzxxkcjsgkx6fjqzvsawx2iap23j605j9";
3334 };
3435
3536 propagatedBuildInputs = [
36− attrs
3737 appdirs
38+ attrs
3839 cached-property
3940 defusedxml
4041 isodate
4142 lxml
42− pytz
43+ requests
4344 requests_toolbelt
4445 six
45− ];
46−
47− # testtools dependency not supported for py3k
48− doCheck = !isPy3k;
46+ pytz
4947
50− checkInputs = [
48+ # optional requirements
5149 tornado
52− ];
50+ ] ++ lib.optional isPy3k aiohttp;
5351
54− buildInputs = if isPy3k then [] else [
52+ checkInputs = [
5553 freezegun
5654 mock
57− nose
5855 pretend
59− pytest
6056 pytestcov
57+ pytest_3
6158 requests-mock
62− ];
63−
64− patchPhase = ''
65− # remove overly strict bounds and lint requirements
66− sed -e "s/freezegun==.*'/freezegun'/" \
67− -e "s/pytest-cov==.*'/pytest-cov'/" \
68− -e "s/'isort.*//" \
69− -e "s/'flake8.*//" \
70− -i setup.py
71−
72− # locale.preferredencoding() != 'utf-8'
73− sed -e "s/xsd', 'r')/xsd', 'r', encoding='utf-8')/" -i tests/*.py
74−
75− # cache defaults to home directory, which doesn't exist
76− sed -e "s|SqliteCache()|SqliteCache(path='./zeeptest.db')|" \
77− -i tests/test_transports.py
78−
79− # requires xmlsec python module
80− rm tests/test_wsse_signature.py
81− '';
59+ ] ++ lib.optional isPy3k aioresponses;
8260
8361 checkPhase = ''
8462 runHook preCheck
85− ${python.interpreter} -m pytest tests
63+ # ignored tests requires xmlsec python module
64+ HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py
8665 runHook postCheck
8766 '';
8867