2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
2020-04-24 23:36:52 +00:00
|
|
|
, attrs
|
2021-06-28 23:13:55 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, cached-property
|
|
|
|
, defusedxml
|
2021-06-28 23:13:55 +00:00
|
|
|
, fetchFromGitHub
|
2022-04-15 01:41:22 +00:00
|
|
|
, fetchpatch
|
2021-06-28 23:13:55 +00:00
|
|
|
, freezegun
|
|
|
|
, httpx
|
2020-04-24 23:36:52 +00:00
|
|
|
, isodate
|
|
|
|
, lxml
|
|
|
|
, mock
|
2021-08-22 07:53:02 +00:00
|
|
|
, platformdirs
|
2020-04-24 23:36:52 +00:00
|
|
|
, pretend
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-httpx
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pytz
|
|
|
|
, requests
|
2021-07-24 12:14:16 +00:00
|
|
|
, requests-toolbelt
|
2021-06-28 23:13:55 +00:00
|
|
|
, requests-file
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests-mock
|
2021-06-28 23:13:55 +00:00
|
|
|
, xmlsec
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zeep";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "4.2.1";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mvantellingen";
|
|
|
|
repo = "python-zeep";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-8f6kS231gbaZ8qyE8BKMcbnZsm8o2+iBoTlQrs5X+jY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
cached-property
|
|
|
|
defusedxml
|
2021-06-28 23:13:55 +00:00
|
|
|
httpx
|
2020-04-24 23:36:52 +00:00
|
|
|
isodate
|
|
|
|
lxml
|
2021-08-22 07:53:02 +00:00
|
|
|
platformdirs
|
2021-06-28 23:13:55 +00:00
|
|
|
pytz
|
2020-04-24 23:36:52 +00:00
|
|
|
requests
|
2021-06-28 23:13:55 +00:00
|
|
|
requests-file
|
2021-08-22 07:53:02 +00:00
|
|
|
requests-toolbelt
|
2021-06-28 23:13:55 +00:00
|
|
|
xmlsec
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
aiohttp
|
|
|
|
aioresponses
|
2020-04-24 23:36:52 +00:00
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
pretend
|
2021-06-28 23:13:55 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
requests-mock
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTests = [
|
|
|
|
# lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 64
|
|
|
|
"test_mime_content_serialize_text_xml"
|
2022-01-13 20:06:32 +00:00
|
|
|
# Tests are outdated
|
|
|
|
"test_load"
|
|
|
|
"test_load_cache"
|
|
|
|
"test_post"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"zeep"
|
|
|
|
];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Python SOAP client";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://docs.python-zeep.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rvl ];
|
|
|
|
};
|
|
|
|
}
|