nixpkgs/pkgs/development/python-modules/zeep/default.nix

85 lines
1.4 KiB
Nix
Raw Normal View History

2021-06-07 12:02:12 +01:00
{ lib
, aiohttp
, aioresponses
, attrs
2021-06-07 12:02:12 +01:00
, buildPythonPackage
, cached-property
, defusedxml
2021-06-07 12:02:12 +01:00
, fetchFromGitHub
, freezegun
, httpx
, isodate
, lxml
, mock
2021-08-18 17:05:29 +01:00
, platformdirs
, pretend
2021-06-07 12:02:12 +01:00
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, pythonOlder
, pytz
, requests
, requests-toolbelt
2021-06-07 12:02:12 +01:00
, requests-file
, requests-mock
2021-06-07 12:02:12 +01:00
, xmlsec
}:
buildPythonPackage rec {
pname = "zeep";
2021-08-18 17:05:29 +01:00
version = "4.1.0";
2021-06-07 12:02:12 +01:00
disabled = pythonOlder "3.6";
2021-06-07 12:02:12 +01:00
src = fetchFromGitHub {
owner = "mvantellingen";
repo = "python-zeep";
rev = version;
2021-08-18 17:05:29 +01:00
sha256 = "sha256-fJLr2LJpbNQTl183R56G7sJILfm04R39qpJxLogQLoo=";
};
propagatedBuildInputs = [
attrs
cached-property
defusedxml
2021-06-07 12:02:12 +01:00
httpx
isodate
lxml
2021-08-18 17:05:29 +01:00
platformdirs
2021-06-07 12:02:12 +01:00
pytz
requests
2021-06-07 12:02:12 +01:00
requests-file
2021-08-18 17:05:29 +01:00
requests-toolbelt
2021-06-07 12:02:12 +01:00
xmlsec
];
2017-10-25 19:04:35 +01:00
checkInputs = [
2021-06-07 12:02:12 +01:00
aiohttp
aioresponses
freezegun
mock
pretend
2021-06-07 12:02:12 +01:00
pytest-asyncio
pytest-httpx
pytestCheckHook
requests-mock
2021-06-07 12:02:12 +01:00
];
2021-06-07 12:02:12 +01:00
preCheck = ''
export HOME=$(mktemp -d);
'';
2021-06-07 12:02:12 +01:00
disabledTests = [
# lxml.etree.XMLSyntaxError: Extra content at the end of the document, line 2, column 64
"test_mime_content_serialize_text_xml"
];
pythonImportsCheck = [ "zeep" ];
meta = with lib; {
2021-06-07 12:02:12 +01:00
description = "Python SOAP client";
homepage = "http://docs.python-zeep.org";
license = licenses.mit;
maintainers = with maintainers; [ rvl ];
};
}