1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{ fetchPypi
, lib
, buildPythonPackage
, isPy3k
, appdirs
, attrs
, cached-property
, defusedxml
, isodate
, lxml
, requests
, requests_toolbelt
, six
, pytz
, tornado
, aiohttp
# test dependencies
, freezegun
, mock
, pretend
, pytest_3
, pytestcov
, requests-mock
, aioresponses
}:
buildPythonPackage rec {
pname = "zeep";
version = "3.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "0e98669cfeb60756231ae185498f9ae21b30b2681786b8de58ed34c3b93e41dd";
};
propagatedBuildInputs = [
appdirs
attrs
cached-property
defusedxml
isodate
lxml
requests
requests_toolbelt
six
pytz
# optional requirements
tornado
] ++ lib.optional isPy3k aiohttp;
checkInputs = [
freezegun
mock
pretend
pytestcov
pytest_3
requests-mock
] ++ lib.optional isPy3k aioresponses;
checkPhase = ''
runHook preCheck
# ignored tests requires xmlsec python module
HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py
runHook postCheck
'';
meta = with lib; {
homepage = http://docs.python-zeep.org;
license = licenses.mit;
description = "A modern/fast Python SOAP client based on lxml / requests";
maintainers = with maintainers; [ rvl ];
};
}
|