93 lines
1.5 KiB
Nix
93 lines
1.5 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, attrs
|
|
, buildPythonPackage
|
|
, cached-property
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, freezegun
|
|
, httpx
|
|
, isodate
|
|
, lxml
|
|
, mock
|
|
, platformdirs
|
|
, pretend
|
|
, pytest-asyncio
|
|
, pytest-httpx
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
, requests
|
|
, requests-toolbelt
|
|
, requests-file
|
|
, requests-mock
|
|
, xmlsec
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zeep";
|
|
version = "4.2.1";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mvantellingen";
|
|
repo = "python-zeep";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8f6kS231gbaZ8qyE8BKMcbnZsm8o2+iBoTlQrs5X+jY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
attrs
|
|
cached-property
|
|
defusedxml
|
|
httpx
|
|
isodate
|
|
lxml
|
|
platformdirs
|
|
pytz
|
|
requests
|
|
requests-file
|
|
requests-toolbelt
|
|
xmlsec
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aiohttp
|
|
aioresponses
|
|
freezegun
|
|
mock
|
|
pretend
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
pytestCheckHook
|
|
requests-mock
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d);
|
|
'';
|
|
|
|
disabledTests = [
|
|
# lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 64
|
|
"test_mime_content_serialize_text_xml"
|
|
# Tests are outdated
|
|
"test_load"
|
|
"test_load_cache"
|
|
"test_post"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"zeep"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python SOAP client";
|
|
homepage = "http://docs.python-zeep.org";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ rvl ];
|
|
};
|
|
}
|