python311Packages.zeep: expose optionals and clean up

Set format, prune disabled tests.
This commit is contained in:
Martin Weinelt 2023-08-04 19:12:02 +02:00
parent c4e88b9b85
commit 23aeaac3d4
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -3,10 +3,8 @@
, aioresponses
, attrs
, buildPythonPackage
, cached-property
, defusedxml
, fetchFromGitHub
, fetchpatch
, freezegun
, httpx
, isodate
@ -29,6 +27,7 @@
buildPythonPackage rec {
pname = "zeep";
version = "4.2.1";
format = "setuptools";
disabled = pythonOlder "3.6";
@ -41,9 +40,7 @@ buildPythonPackage rec {
propagatedBuildInputs = [
attrs
cached-property
defusedxml
httpx
isodate
lxml
platformdirs
@ -51,7 +48,19 @@ buildPythonPackage rec {
requests
requests-file
requests-toolbelt
xmlsec
];
passthru.optional-dependencies = {
async_require = [
httpx
];
xmlsec_require = [
xmlsec
];
};
pythonImportsCheck = [
"zeep"
];
nativeCheckInputs = [
@ -64,26 +73,15 @@ buildPythonPackage rec {
pytest-httpx
pytestCheckHook
requests-mock
];
]
++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
preCheck = ''
export HOME=$(mktemp -d);
export HOME=$TMPDIR
'';
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; {
changelog = "https://github.com/mvantellingen/python-zeep/releases/tag/${version}";
description = "Python SOAP client";
homepage = "http://docs.python-zeep.org";
license = licenses.mit;