git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #57469 from r-ryantm/auto-update/python3.7-zeep

python37Packages.zeep: 3.2.0 -> 3.3.0

commit5908a0244f493a9c26568d723a77ff3ea417e6d3 authorRobert Schütz <rschuetz17@gmail.com> dateThu 11 Apr 2019, 18:23 (8 years ago) parent993e2b4b716b4d
3 files changed+68−40
pkgs/development/python-modules/aioresponses/default.nix+47 pkgs/development/python-modules/zeep/default.nix+19−40 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/aioresponses/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, pythonOlder
5+, pbr
6+, aiohttp
7+, ddt
8+, asynctest
9+, pytest
10+}:
11+
12+buildPythonPackage rec {
13+ pname = "aioresponses";
14+ version = "0.6.0";
15+ disabled = pythonOlder "3.5";
16+
17+ src = fetchPypi {
18+ inherit pname version;
19+ sha256 = "0ii1jiwb8qa2y8cqa1zqn7mjax9l8bpf16k4clv616mxw1l0bvs6";
20+ };
21+
22+ nativeBuildInputs = [
23+ pbr
24+ ];
25+
26+ propagatedBuildInputs = [
27+ aiohttp
28+ ];
29+
30+ checkInputs = [
31+ asynctest
32+ ddt
33+ pytest
34+ ];
35+
36+ # Skip a test which makes requests to httpbin.org
37+ checkPhase = ''
38+ pytest -k "not test_address_as_instance_of_url_combined_with_pass_through"
39+ '';
40+
41+ meta = {
42+ description = "A helper to mock/fake web requests in python aiohttp package";
43+ homepage = https://github.com/pnuckowski/aioresponses;
44+ license = lib.licenses.mit;
45+ maintainers = with lib.maintainers; [ rvl ];
46+ };
47+}
pkgs/development/python-modules/zeep/default.nix+19−40
@@ -1,88 +1,67 @@
11{ fetchPypi
22, lib
33, buildPythonPackage
4−, python
54, isPy3k
65, appdirs
6+, attrs
77, cached-property
88, defusedxml
99, isodate
1010, lxml
11−, pytz
11+, requests
1212, requests_toolbelt
1313, six
14+, pytz
15+, tornado
16+, aiohttp
1417# test dependencies
1518, freezegun
1619, mock
17−, nose
1820, pretend
19−, pytest
21+, pytest_3
2022, pytestcov
2123, requests-mock
22−, tornado
23−, attrs
24+, aioresponses
2425}:
2526
2627buildPythonPackage rec {
2728 pname = "zeep";
28− version = "3.2.0";
29+ version = "3.3.0";
2930
3031 src = fetchPypi {
3132 inherit pname version;
32− sha256 = "0bfpdy3hi8aa45piwg5gj0xxa187v13d66qr1ki73qn7c6rbizp5";
33+ sha256 = "144dk7gw93l4amrwmp5vzxxkcjsgkx6fjqzvsawx2iap23j605j9";
3334 };
3435
3536 propagatedBuildInputs = [
36− attrs
3737 appdirs
38+ attrs
3839 cached-property
3940 defusedxml
4041 isodate
4142 lxml
42− pytz
43+ requests
4344 requests_toolbelt
4445 six
45− ];
46−
47− # testtools dependency not supported for py3k
48− doCheck = !isPy3k;
46+ pytz
4947
50− checkInputs = [
48+ # optional requirements
5149 tornado
52− ];
50+ ] ++ lib.optional isPy3k aiohttp;
5351
54− buildInputs = if isPy3k then [] else [
52+ checkInputs = [
5553 freezegun
5654 mock
57− nose
5855 pretend
59− pytest
6056 pytestcov
57+ pytest_3
6158 requests-mock
62− ];
63−
64− patchPhase = ''
65− # remove overly strict bounds and lint requirements
66− sed -e "s/freezegun==.*'/freezegun'/" \
67− -e "s/pytest-cov==.*'/pytest-cov'/" \
68− -e "s/'isort.*//" \
69− -e "s/'flake8.*//" \
70− -i setup.py
71−
72− # locale.preferredencoding() != 'utf-8'
73− sed -e "s/xsd', 'r')/xsd', 'r', encoding='utf-8')/" -i tests/*.py
74−
75− # cache defaults to home directory, which doesn't exist
76− sed -e "s|SqliteCache()|SqliteCache(path='./zeeptest.db')|" \
77− -i tests/test_transports.py
78−
79− # requires xmlsec python module
80− rm tests/test_wsse_signature.py
81− '';
59+ ] ++ lib.optional isPy3k aioresponses;
8260
8361 checkPhase = ''
8462 runHook preCheck
85− ${python.interpreter} -m pytest tests
63+ # ignored tests requires xmlsec python module
64+ HOME=$(mktemp -d) pytest tests --ignore tests/test_wsse_signature.py
8665 runHook postCheck
8766 '';
8867
pkgs/top-level/python-packages.nix+2
@@ -940,6 +940,8 @@ in {
940940
941941 aioprocessing = callPackage ../development/python-modules/aioprocessing { };
942942
943+ aioresponses = callPackage ../development/python-modules/aioresponses { };
944+
943945 aiorpcx = callPackage ../development/python-modules/aiorpcx { };
944946
945947 aiounifi = callPackage ../development/python-modules/aiounifi { };