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