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

86 lines
1.4 KiB
Nix
Raw Normal View History

2021-06-07 11:02:12 +00:00
{ lib
, aiohttp
, aioresponses
, appdirs
, attrs
2021-06-07 11:02:12 +00:00
, buildPythonPackage
, cached-property
, defusedxml
2021-06-07 11:02:12 +00:00
, fetchFromGitHub
, freezegun
, httpx
, isodate
, lxml
, mock
, pretend
2021-06-07 11:02:12 +00:00
, pytest-asyncio
, pytest-httpx
, pytestCheckHook
, pythonOlder
, pytz
, requests
, requests-toolbelt
2021-06-07 11:02:12 +00:00
, requests-file
, requests-mock
2021-06-07 11:02:12 +00:00
, xmlsec
}:
buildPythonPackage rec {
pname = "zeep";
2021-06-07 11:02:12 +00:00
version = "4.0.0";
disabled = pythonOlder "3.6";
2021-06-07 11:02:12 +00:00
src = fetchFromGitHub {
owner = "mvantellingen";
repo = "python-zeep";
rev = version;
sha256 = "1rwmwk47fxs8dxwv5dr6gbnbiyilznifb47fhbxgzj231w0y82cm";
};
propagatedBuildInputs = [
appdirs
attrs
cached-property
defusedxml
2021-06-07 11:02:12 +00:00
httpx
isodate
lxml
2021-06-07 11:02:12 +00:00
pytz
requests
requests-toolbelt
2021-06-07 11:02:12 +00:00
requests-file
xmlsec
];
2017-10-25 18:04:35 +00:00
checkInputs = [
2021-06-07 11:02:12 +00:00
aiohttp
aioresponses
freezegun
mock
pretend
2021-06-07 11:02:12 +00:00
pytest-asyncio
pytest-httpx
pytestCheckHook
requests-mock
2021-06-07 11:02:12 +00:00
xmlsec
];
2021-06-07 11:02:12 +00:00
preCheck = ''
export HOME=$(mktemp -d);
'';
2021-06-07 11:02:12 +00: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 11:02:12 +00:00
description = "Python SOAP client";
homepage = "http://docs.python-zeep.org";
license = licenses.mit;
maintainers = with maintainers; [ rvl ];
};
}