2017-03-15 20:33:25 +00:00
|
|
|
{ fetchPypi
|
|
|
|
, lib
|
2019-09-13 17:05:12 +01:00
|
|
|
, fetchpatch
|
2017-03-15 20:33:25 +00:00
|
|
|
, 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-07-13 10:22:00 +01:00
|
|
|
, pytest
|
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-06-16 18:13:41 +01:00
|
|
|
version = "3.4.0";
|
2017-03-15 20:33:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-06-16 18:13:41 +01:00
|
|
|
sha256 = "0e98669cfeb60756231ae185498f9ae21b30b2681786b8de58ed34c3b93e41dd";
|
2017-03-15 20:33:25 +00:00
|
|
|
};
|
|
|
|
|
2019-09-13 17:05:12 +01:00
|
|
|
patches = [
|
|
|
|
( fetchpatch {
|
|
|
|
url = "https://github.com/mvantellingen/python-zeep/pull/1006/commits/ba7edd6bf2b31023b31e8f17c161e1d6d5af3d29.patch";
|
|
|
|
sha256 = "1j0jd5hmh457im9sbawaqf6pnfy36fhr9wqdim8wk5da9ixr0ajs";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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-07-13 10:22:00 +01:00
|
|
|
pytest
|
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-07-13 10:22:00 +01:00
|
|
|
# fix compatibility with pytest 4
|
|
|
|
substituteInPlace tests/conftest.py \
|
|
|
|
--replace 'request.node.get_marker("requests")' 'request.node.get_closest_marker("requests")'
|
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; {
|
2020-04-01 02:11:51 +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 ];
|
|
|
|
};
|
|
|
|
}
|