Unverified Commit a22f9d2a authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #247150 from mweinelt/zeep-optionals

python311Packages.zeep: expose optionals and clean up
parents 7788b507 23aeaac3
Loading
Loading
Loading
Loading
+18 −20
Original line number Diff line number Diff line
@@ -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,8 +48,20 @@ buildPythonPackage rec {
    requests
    requests-file
    requests-toolbelt
  ];

  passthru.optional-dependencies = {
    async_require = [
      httpx
    ];
    xmlsec_require = [
      xmlsec
    ];
  };

  pythonImportsCheck = [
    "zeep"
  ];

  nativeCheckInputs = [
    aiohttp
@@ -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;