uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
100
pkgs/development/python-modules/zeep/default.nix
Normal file
100
pkgs/development/python-modules/zeep/default.nix
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, aioresponses
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, cached-property
|
||||
, defusedxml
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
, freezegun
|
||||
, httpx
|
||||
, isodate
|
||||
, lxml
|
||||
, mock
|
||||
, platformdirs
|
||||
, pretend
|
||||
, pytest-asyncio
|
||||
, pytest-httpx
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, requests
|
||||
, requests-toolbelt
|
||||
, requests-file
|
||||
, requests-mock
|
||||
, xmlsec
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zeep";
|
||||
version = "4.1.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mvantellingen";
|
||||
repo = "python-zeep";
|
||||
rev = version;
|
||||
sha256 = "sha256-fJLr2LJpbNQTl183R56G7sJILfm04R39qpJxLogQLoo=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# fixes pytest_httpx test case; https://github.com/mvantellingen/python-zeep/pull/1293
|
||||
url = "https://github.com/mvantellingen/python-zeep/commit/2907848185adcb4e6d8c093db6c617c64cb8c8bf.patch";
|
||||
hash = "sha256-hpksgMfrBLvYtI1QIs1aHBtFq7C1PWpnAj8BW5ak1/4=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
cached-property
|
||||
defusedxml
|
||||
httpx
|
||||
isodate
|
||||
lxml
|
||||
platformdirs
|
||||
pytz
|
||||
requests
|
||||
requests-file
|
||||
requests-toolbelt
|
||||
xmlsec
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
aiohttp
|
||||
aioresponses
|
||||
freezegun
|
||||
mock
|
||||
pretend
|
||||
pytest-asyncio
|
||||
pytest-httpx
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
'';
|
||||
|
||||
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; {
|
||||
description = "Python SOAP client";
|
||||
homepage = "http://docs.python-zeep.org";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rvl ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue