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
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, python
|
||||
, isPy3k
|
||||
, appdirs
|
||||
, attrs
|
||||
, cached-property
|
||||
, defusedxml
|
||||
, isodate
|
||||
, lxml
|
||||
, pytz
|
||||
, requests
|
||||
, requests_toolbelt
|
||||
, six
|
||||
, pytz
|
||||
, tornado
|
||||
, aiohttp
|
||||
# test dependencies
|
||||
, freezegun
|
||||
, mock
|
||||
, nose
|
||||
, pretend
|
||||
, pytest
|
||||
, pytest_3
|
||||
, pytestcov
|
||||
, requests-mock
|
||||
, tornado
|
||||
, attrs
|
||||
, aioresponses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "zeep";
|
||||
version = "3.2.0";
|
||||
version = "3.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "0bfpdy3hi8aa45piwg5gj0xxa187v13d66qr1ki73qn7c6rbizp5";
|
||||
sha256 = "144dk7gw93l4amrwmp5vzxxkcjsgkx6fjqzvsawx2iap23j605j9";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
appdirs
|
||||
attrs
|
||||
cached-property
|
||||
defusedxml
|
||||
isodate
|
||||
lxml
|
||||
pytz
|
||||
requests
|
||||
requests_toolbelt
|
||||
six
|
||||
];
|
||||
pytz
|
||||
|
||||
# testtools dependency not supported for py3k
|
||||
doCheck = !isPy3k;
|
||||
# optional requirements
|
||||
tornado
|
||||
] ++ lib.optional isPy3k aiohttp;
|
||||
|
||||
checkInputs = [
|
||||
tornado
|
||||
];
|
||||
|
||||
buildInputs = if isPy3k then [] else [
|
||||
freezegun
|
||||
mock
|
||||
nose
|
||||
pretend
|
||||
pytest
|
||||
pytestcov
|
||||
pytest_3
|
||||
requests-mock
|
||||
];
|
||||
|
||||
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
|
||||
'';
|
||||
] ++ lib.optional isPy3k aioresponses;
|
||||
|
||||
checkPhase = ''
|
||||
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
|
||||
'';
|
||||
|
||||
|
@ -940,6 +940,8 @@ in {
|
||||
|
||||
aioprocessing = callPackage ../development/python-modules/aioprocessing { };
|
||||
|
||||
aioresponses = callPackage ../development/python-modules/aioresponses { };
|
||||
|
||||
aiorpcx = callPackage ../development/python-modules/aiorpcx { };
|
||||
|
||||
aiounifi = callPackage ../development/python-modules/aiounifi { };
|
||||
|
Loading…
Reference in New Issue
Block a user