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