2017-03-15 20:33:25 +00:00
|
|
|
{ fetchPypi
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, python
|
|
|
|
, isPy3k
|
|
|
|
, appdirs
|
|
|
|
, cached-property
|
|
|
|
, defusedxml
|
|
|
|
, isodate
|
|
|
|
, lxml
|
|
|
|
, pytz
|
|
|
|
, requests_toolbelt
|
|
|
|
, six
|
|
|
|
# test dependencies
|
|
|
|
, freezegun
|
|
|
|
, mock
|
|
|
|
, nose
|
|
|
|
, pretend
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, requests-mock
|
2017-10-25 19:04:35 +01:00
|
|
|
, tornado
|
2018-08-09 23:17:57 +01:00
|
|
|
, attrs
|
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";
|
2018-08-13 08:34:49 +01:00
|
|
|
version = "3.1.0";
|
2017-03-15 20:33:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-13 08:34:49 +01:00
|
|
|
sha256 = "b2d96881689c3f29e8ea5c8c6abb2b17fb0f470deee15d0d7bec4e74592850f6";
|
2017-03-15 20:33:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-08-09 23:17:57 +01:00
|
|
|
attrs
|
2017-03-15 20:33:25 +00:00
|
|
|
appdirs
|
|
|
|
cached-property
|
|
|
|
defusedxml
|
|
|
|
isodate
|
|
|
|
lxml
|
|
|
|
pytz
|
|
|
|
requests_toolbelt
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
# testtools dependency not supported for py3k
|
|
|
|
doCheck = !isPy3k;
|
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
checkInputs = [
|
|
|
|
tornado
|
|
|
|
];
|
|
|
|
|
2017-03-15 20:33:25 +00:00
|
|
|
buildInputs = if isPy3k then [] else [
|
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pretend
|
|
|
|
pytest
|
|
|
|
pytestcov
|
|
|
|
requests-mock
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
# remove overly strict bounds and lint requirements
|
|
|
|
sed -e "s/freezegun==.*'/freezegun'/" \
|
|
|
|
-e "s/pytest-cov==.*'/pytest-cov'/" \
|
|
|
|
-e "s/'isort.*//" \
|
|
|
|
-e "s/'flake8.*//" \
|
|
|
|
-i setup.py
|
|
|
|
|
|
|
|
# locale.preferredencoding() != 'utf-8'
|
|
|
|
sed -e "s/xsd', 'r')/xsd', 'r', encoding='utf-8')/" -i tests/*.py
|
|
|
|
|
|
|
|
# cache defaults to home directory, which doesn't exist
|
|
|
|
sed -e "s|SqliteCache()|SqliteCache(path='./zeeptest.db')|" \
|
|
|
|
-i tests/test_transports.py
|
|
|
|
|
|
|
|
# requires xmlsec python module
|
|
|
|
rm tests/test_wsse_signature.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m pytest tests
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|