lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python311Packages.zeep: expose optionals and clean up

Set format, prune disabled tests.

+18 -20
+18 -20
pkgs/development/python-modules/zeep/default.nix
··· 3 3 , aioresponses 4 4 , attrs 5 5 , buildPythonPackage 6 - , cached-property 7 6 , defusedxml 8 7 , fetchFromGitHub 9 - , fetchpatch 10 8 , freezegun 11 9 , httpx 12 10 , isodate ··· 29 27 buildPythonPackage rec { 30 28 pname = "zeep"; 31 29 version = "4.2.1"; 30 + format = "setuptools"; 32 31 33 32 disabled = pythonOlder "3.6"; 34 33 ··· 41 40 42 41 propagatedBuildInputs = [ 43 42 attrs 44 - cached-property 45 43 defusedxml 46 - httpx 47 44 isodate 48 45 lxml 49 46 platformdirs ··· 51 48 requests 52 49 requests-file 53 50 requests-toolbelt 54 - xmlsec 51 + ]; 52 + 53 + passthru.optional-dependencies = { 54 + async_require = [ 55 + httpx 56 + ]; 57 + xmlsec_require = [ 58 + xmlsec 59 + ]; 60 + }; 61 + 62 + pythonImportsCheck = [ 63 + "zeep" 55 64 ]; 56 65 57 66 nativeCheckInputs = [ ··· 64 73 pytest-httpx 65 74 pytestCheckHook 66 75 requests-mock 67 - ]; 76 + ] 77 + ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); 68 78 69 79 preCheck = '' 70 - export HOME=$(mktemp -d); 80 + export HOME=$TMPDIR 71 81 ''; 72 82 73 - disabledTests = [ 74 - # lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 64 75 - "test_mime_content_serialize_text_xml" 76 - # Tests are outdated 77 - "test_load" 78 - "test_load_cache" 79 - "test_post" 80 - ]; 81 - 82 - pythonImportsCheck = [ 83 - "zeep" 84 - ]; 85 - 86 83 meta = with lib; { 84 + changelog = "https://github.com/mvantellingen/python-zeep/releases/tag/${version}"; 87 85 description = "Python SOAP client"; 88 86 homepage = "http://docs.python-zeep.org"; 89 87 license = licenses.mit;