Merge pull request #57469 from r-ryantm/auto-update/python3.7-zeep
python37Packages.zeep: 3.2.0 -> 3.3.0
This commit is contained in:
commit
5908a0244f
47
pkgs/development/python-modules/aioresponses/default.nix
Normal file
47
pkgs/development/python-modules/aioresponses/default.nix
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
, pbr
|
||||||
|
, aiohttp
|
||||||
|
, ddt
|
||||||
|
, asynctest
|
||||||
|
, pytest
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aioresponses";
|
||||||
|
version = "0.6.0";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "0ii1jiwb8qa2y8cqa1zqn7mjax9l8bpf16k4clv616mxw1l0bvs6";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pbr
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
asynctest
|
||||||
|
ddt
|
||||||
|
pytest
|
||||||
|
];
|
||||||
|
|
||||||
|
# Skip a test which makes requests to httpbin.org
|
||||||
|
checkPhase = ''
|
||||||
|
pytest -k "not test_address_as_instance_of_url_combined_with_pass_through"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A helper to mock/fake web requests in python aiohttp package";
|
||||||
|
homepage = https://github.com/pnuckowski/aioresponses;
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ rvl ];
|
||||||
|
};
|
||||||
|
}
|
@ -1,88 +1,67 @@
|
|||||||
{ fetchPypi
|
{ fetchPypi
|
||||||
, lib
|
, lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, python
|
|
||||||
, isPy3k
|
, isPy3k
|
||||||
, appdirs
|
, appdirs
|
||||||
|
, attrs
|
||||||
, cached-property
|
, cached-property
|
||||||
, defusedxml
|
, defusedxml
|
||||||
, isodate
|
, isodate
|
||||||
, lxml
|
, lxml
|
||||||
, pytz
|
, requests
|
||||||
, requests_toolbelt
|
, requests_toolbelt
|
||||||
, six
|
, six
|
||||||
|
, pytz
|
||||||
|
, tornado
|
||||||
|
, aiohttp
|
||||||
# test dependencies
|
# test dependencies
|
||||||
, freezegun
|
, freezegun
|
||||||
, mock
|
, mock
|
||||||
, nose
|
|
||||||
, pretend
|
, pretend
|
||||||
, pytest
|
, pytest_3
|
||||||
, pytestcov
|
, pytestcov
|
||||||
, requests-mock
|
, requests-mock
|
||||||
, tornado
|
, aioresponses
|
||||||
, attrs
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "zeep";
|
pname = "zeep";
|
||||||
version = "3.2.0";
|
version = "3.3.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "0bfpdy3hi8aa45piwg5gj0xxa187v13d66qr1ki73qn7c6rbizp5";
|
sha256 = "144dk7gw93l4amrwmp5vzxxkcjsgkx6fjqzvsawx2iap23j605j9";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
attrs
|
|
||||||
appdirs
|
appdirs
|
||||||
|
attrs
|
||||||
cached-property
|
cached-property
|
||||||
defusedxml
|
defusedxml
|
||||||
isodate
|
isodate
|
||||||
lxml
|
lxml
|
||||||
pytz
|
requests
|
||||||
requests_toolbelt
|
requests_toolbelt
|
||||||
six
|
six
|
||||||
];
|
pytz
|
||||||
|
|
||||||
# testtools dependency not supported for py3k
|
# optional requirements
|
||||||
doCheck = !isPy3k;
|
tornado
|
||||||
|
] ++ lib.optional isPy3k aiohttp;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
tornado
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = if isPy3k then [] else [
|
|
||||||
freezegun
|
freezegun
|
||||||
mock
|
mock
|
||||||
nose
|
|
||||||
pretend
|
pretend
|
||||||
pytest
|
|
||||||
pytestcov
|
pytestcov
|
||||||
|
pytest_3
|
||||||
requests-mock
|
requests-mock
|
||||||
];
|
] ++ lib.optional isPy3k aioresponses;
|
||||||
|
|
||||||
patchPhase = ''
|
|
||||||
# remove overly strict bounds and lint requirements
|
|
||||||
sed -e "s/freezegun==.*'/freezegun'/" \
|
|
||||||
-e "s/pytest-cov==.*'/pytest-cov'/" \
|
|
||||||
-e "s/'isort.*//" \
|
|
||||||
-e "s/'flake8.*//" \
|
|
||||||
-i setup.py
|
|
||||||
|
|
||||||
# locale.preferredencoding() != 'utf-8'
|
|
||||||
sed -e "s/xsd', 'r')/xsd', 'r', encoding='utf-8')/" -i tests/*.py
|
|
||||||
|
|
||||||
# cache defaults to home directory, which doesn't exist
|
|
||||||
sed -e "s|SqliteCache()|SqliteCache(path='./zeeptest.db')|" \
|
|
||||||
-i tests/test_transports.py
|
|
||||||
|
|
||||||
# requires xmlsec python module
|
|
||||||
rm tests/test_wsse_signature.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
${python.interpreter} -m pytest tests
|
# ignored tests requires xmlsec python module
|
||||||
|
HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -940,6 +940,8 @@ in {
|
|||||||
|
|
||||||
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
|
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
|
||||||
|
|
||||||
|
aioresponses = callPackage ../development/python-modules/aioresponses { };
|
||||||
|
|
||||||
aiorpcx = callPackage ../development/python-modules/aiorpcx { };
|
aiorpcx = callPackage ../development/python-modules/aiorpcx { };
|
||||||
|
|
||||||
aiounifi = callPackage ../development/python-modules/aiounifi { };
|
aiounifi = callPackage ../development/python-modules/aiounifi { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user