2017-03-15 20:33:25 +00:00
|
|
|
{ fetchPypi
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, appdirs
|
2019-04-11 17:17:31 +01:00
|
|
|
, attrs
|
2017-03-15 20:33:25 +00:00
|
|
|
, cached-property
|
|
|
|
, defusedxml
|
|
|
|
, isodate
|
|
|
|
, lxml
|
2019-04-11 17:17:31 +01:00
|
|
|
, requests
|
2017-03-15 20:33:25 +00:00
|
|
|
, requests_toolbelt
|
|
|
|
, six
|
2019-04-11 17:17:31 +01:00
|
|
|
, pytz
|
|
|
|
, tornado
|
|
|
|
, aiohttp
|
2017-03-15 20:33:25 +00:00
|
|
|
# test dependencies
|
|
|
|
, freezegun
|
|
|
|
, mock
|
|
|
|
, pretend
|
2019-04-11 17:17:31 +01:00
|
|
|
, pytest_3
|
2017-03-15 20:33:25 +00:00
|
|
|
, pytestcov
|
|
|
|
, requests-mock
|
2019-04-11 17:17:31 +01:00
|
|
|
, aioresponses
|
2017-03-15 20:33:25 +00:00
|
|
|
}:
|
|
|
|
|
2018-06-23 14:27:58 +01:00
|
|
|
buildPythonPackage rec {
|
2017-03-15 20:33:25 +00:00
|
|
|
pname = "zeep";
|
2019-04-16 18:15:42 +01:00
|
|
|
version = "3.3.1";
|
2017-03-15 20:33:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 18:15:42 +01:00
|
|
|
sha256 = "f58328e36264a2fda2484dd20bb1695f4102a9cc918178d60c4d7cf8339c65d0";
|
2017-03-15 20:33:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
2019-04-11 17:17:31 +01:00
|
|
|
attrs
|
2017-03-15 20:33:25 +00:00
|
|
|
cached-property
|
|
|
|
defusedxml
|
|
|
|
isodate
|
|
|
|
lxml
|
2019-04-11 17:17:31 +01:00
|
|
|
requests
|
2017-03-15 20:33:25 +00:00
|
|
|
requests_toolbelt
|
|
|
|
six
|
2019-04-11 17:17:31 +01:00
|
|
|
pytz
|
2017-03-15 20:33:25 +00:00
|
|
|
|
2019-04-11 17:17:31 +01:00
|
|
|
# optional requirements
|
2017-10-25 19:04:35 +01:00
|
|
|
tornado
|
2019-04-11 17:17:31 +01:00
|
|
|
] ++ lib.optional isPy3k aiohttp;
|
2017-10-25 19:04:35 +01:00
|
|
|
|
2019-04-11 17:17:31 +01:00
|
|
|
checkInputs = [
|
2017-03-15 20:33:25 +00:00
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
pretend
|
|
|
|
pytestcov
|
2019-04-11 17:17:31 +01:00
|
|
|
pytest_3
|
2017-03-15 20:33:25 +00:00
|
|
|
requests-mock
|
2019-04-11 17:17:31 +01:00
|
|
|
] ++ lib.optional isPy3k aioresponses;
|
2017-03-15 20:33:25 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2019-04-11 17:17:31 +01:00
|
|
|
# ignored tests requires xmlsec python module
|
|
|
|
HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py
|
2017-03-15 20:33:25 +00:00
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://docs.python-zeep.org;
|
2017-03-15 20:33:25 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
description = "A modern/fast Python SOAP client based on lxml / requests";
|
|
|
|
maintainers = with maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|