git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #29602 from makefu/pkgs/oslo-config/fix

oslo-config: fix build

commit40a58dbcbb104d4e803f636255aad8a0c42f187c authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 26 Sep 2017, 09:57 (9 years ago) parentc74418a032c50d
9 files changed+247−102
pkgs/development/libraries/gdal/default.nix+1−1 pkgs/development/python-modules/hupper/default.nix+20 pkgs/development/python-modules/keystoneauth1/default.nix+16−6 pkgs/development/python-modules/oslo-config/default.nix+13−6 pkgs/development/python-modules/plaster-pastedeploy/default.nix+22 pkgs/development/python-modules/plaster/default.nix+20 pkgs/development/python-modules/requestsexceptions/default.nix+27 pkgs/development/python-modules/sqlalchemy-migrate/default.nix+3−3 pkgs/top-level/python-packages.nix+125−86
pkgs/development/libraries/gdal/default.nix+1−1
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 "--with-png=${libpng.dev}" # optional
2929 "--with-poppler=${poppler.dev}" # optional
3030 "--with-libz=${zlib.dev}" # optional
31− "--with-pg=${postgresql}/bin/pg_config"
31+ "--with-pg=${postgresql.dev}/bin/pg_config"
3232 "--with-mysql=${mysql.lib.dev}/bin/mysql_config"
3333 "--with-geotiff=${libgeotiff}"
3434 "--with-sqlite3=${sqlite.dev}"
pkgs/development/python-modules/hupper/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ buildPythonPackage, fetchPypi, python
2+, pytest, pytestcov, watchdog, mock
3+}:
4+
5+buildPythonPackage rec {
6+ pname = "hupper";
7+ version = "1.0";
8+ name = "${pname}-${version}";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "02lj6kgaf9xpr0binxwac3gpdhljglyj9fr78s165jc7qd7mifdg";
13+ };
14+
15+ checkPhase = ''
16+ py.test
17+ '';
18+
19+ checkInputs = [ pytest pytestcov watchdog mock ];
20+}
pkgs/development/python-modules/keystoneauth1/default.nix+16−6
@@ -2,24 +2,34 @@
22, pbr, testtools, testresources, testrepository, mock
33, pep8, fixtures, mox3, requests-mock
44, iso8601, requests, six, stevedore, webob, oslo-config
5+, pyyaml, betamax, oauthlib
56}:
67
78buildPythonPackage rec {
89 pname = "keystoneauth1";
9− version = "3.1.0";
10+ version = "3.2.0";
1011 name = "${pname}-${version}";
1112 disabled = isPyPy; # a test fails
1213
1314 src = fetchPypi {
1415 inherit pname version;
15− sha256 = "e5abfa8bbe866d52ca56afbe528d15214a60033cc1dc9804478cae7424f0f8fb";
16+ sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
1617 };
1718
18− buildInputs = [ pbr testtools testresources testrepository mock
19− pep8 fixtures mox3 requests-mock ];
20− propagatedBuildInputs = [ iso8601 requests six stevedore
21− webob oslo-config ];
19+ buildInputs = [ pbr ];
20+ checkInputs = [ pyyaml betamax oauthlib testtools testresources
21+ testrepository mock pep8 fixtures mox3 requests-mock ];
22+ propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
2223
24+ doCheck = true;
25+ # 1. oslo-config
26+ # 2. oslo-utils
27+ # 3. requests-kerberos
28+ preCheck = ''
29+ rm keystoneauth1/tests/unit/loading/test_{session,conf,adapter}.py
30+ rm keystoneauth1/tests/unit/access/test_v{2,3}_access.py
31+ rm keystoneauth1/tests/unit/extras/kerberos/test_fedkerb_loading.py
32+ '';
2333 postPatch = ''
2434 sed -i 's@python@${python.interpreter}@' .testr.conf
2535 substituteInPlace requirements.txt --replace "argparse" ""
pkgs/development/python-modules/oslo-config/default.nix+13−6
@@ -1,16 +1,17 @@
1−{ buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock }:
1+{ lib, buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock,
2+debtcollector, rfc3986, pyyaml, oslo-i18n }:
23
34buildPythonPackage rec {
45 pname = "oslo.config";
5− version = "4.11.0";
6+ version = "4.12.0";
67 name = "${pname}-${version}";
78
89 src = fetchPypi {
910 inherit pname version;
10− sha256 = "1be8aaba466a3449fdb21ee8f7025b0d3d252c8c7568b8d5d05ceff58617cd05";
11+ sha256 = "1pa9lajsadyq47bmxx12dxlcmnqsqlgnb55hwqas26lgnb2073dx";
1112 };
1213
13− propagatedBuildInputs = [ pbr six netaddr stevedore ];
14+ propagatedBuildInputs = [ pbr six netaddr stevedore debtcollector rfc3986 pyyaml oslo-i18n ];
1415 buildInputs = [ mock ];
1516
1617 # TODO: circular import on oslo-i18n
@@ -20,6 +21,12 @@ buildPythonPackage rec {
2021 substituteInPlace requirements.txt --replace "argparse" ""
2122 '';
2223
23− # Requires a bunch of new packages
24− meta.broken = true;
24+ meta = with lib; {
25+ description = "Oslo Configuration API";
26+ homepage = "https://docs.openstack.org/oslo.config/latest/";
27+ license = licenses.asl20;
28+ maintainers = with maintainers; [ makefu ];
29+ };
30+
31+
2532}
pkgs/development/python-modules/plaster-pastedeploy/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ buildPythonPackage, fetchPypi, python
2+, plaster, PasteDeploy
3+, pytest, pytestcov
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "plaster_pastedeploy";
8+ version = "0.4.1";
9+ name = "${pname}-${version}";
10+
11+ src = fetchPypi {
12+ inherit pname version;
13+ sha256 = "1lrbkya5birfmg9gnfcnsa9id28klmjcqbm33rcg69pv9sfld4jv";
14+ };
15+
16+ checkPhase = ''
17+ py.test
18+ '';
19+
20+ propagatedBuildInputs = [ plaster PasteDeploy ];
21+ checkInputs = [ pytest pytestcov ];
22+}
pkgs/development/python-modules/plaster/default.nixnew file+20
@@ -0,0 +1,20 @@
1+{ buildPythonPackage, fetchPypi, python
2+, pytest, pytestcov
3+}:
4+
5+buildPythonPackage rec {
6+ pname = "plaster";
7+ version = "0.5";
8+ name = "${pname}-${version}";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "0z48pis4qyhyqj3ia82r04diaa153dw66wrpbly06hdzvhw8j0ia";
13+ };
14+
15+ checkPhase = ''
16+ py.test
17+ '';
18+
19+ checkInputs = [ pytest pytestcov ];
20+}
pkgs/development/python-modules/requestsexceptions/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ lib, buildPythonPackage, fetchPypi, pbr }:
2+
3+buildPythonPackage rec {
4+ pname = "requestsexceptions";
5+ version = "1.3.0";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "0gim00vi7vfq16y8b9m1vpy01grqvrdrbh88jb98qx6n6sk1n54g";
11+ };
12+
13+ propagatedBuildInputs = [ pbr ];
14+
15+ # upstream hacking package is not required for functional testing
16+ patchPhase = ''
17+ sed -i '/^hacking/d' test-requirements.txt
18+ '';
19+
20+ meta = with lib; {
21+ description = "Import exceptions from potentially bundled packages in requests.";
22+ homepage = "https://pypi.python.org/pypi/requestsexceptions";
23+ license = licenses.asl20;
24+ maintainers = with maintainers; [ makefu ];
25+ patforms = platforms.all;
26+ };
27+}
pkgs/development/python-modules/sqlalchemy-migrate/default.nix+3−3
@@ -12,7 +12,7 @@ buildPythonPackage rec {
1212 sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6";
1313 };
1414
15− checkInputs = [ unittest2 scripttest pytz pylint mock testtools ];
15+ checkInputs = [ unittest2 scripttest pytz pylint mock testtools tempest-lib ];
1616 propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ];
1717
1818 checkPhase = ''
@@ -27,12 +27,12 @@ buildPythonPackage rec {
2727 ${python.interpreter} setup.py test
2828 '';
2929
30− # Tests require tempest-lib which requires the broken oslo-config
31− doCheck = false;
30+ doCheck = true;
3231
3332 meta = with stdenv.lib; {
3433 homepage = http://code.google.com/p/sqlalchemy-migrate/;
3534 description = "Schema migration tools for SQLAlchemy";
3635 license = licenses.asl20;
36+ maintainers = with maintainers; [ makefu ];
3737 };
3838}
pkgs/top-level/python-packages.nix+125−86
@@ -1313,11 +1313,11 @@ in {
13131313 };
13141314
13151315 betamax = buildPythonPackage rec {
1316− name = "betamax-0.6.0";
1316+ name = "betamax-0.8.0";
13171317
13181318 src = pkgs.fetchurl {
13191319 url = "mirror://pypi/b/betamax/${name}.tar.gz";
1320− sha256 = "0vw4d53jbbb2kdl7l891h8iyxklqcd6ldvgcyhw9hl40ljdhv1wz";
1320+ sha256 = "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42";
13211321 };
13221322
13231323 propagatedBuildInputs = [ self.requests ];
@@ -2606,6 +2606,15 @@ in {
26062606 # https://github.com/celery/celery/pull/3736#issuecomment-274155454 from upstream
26072607 patches = [ ../development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch ];
26082608
2609+ # make /etc/protocols accessible to fix socket.getprotobyname('tcp') in sandbox
2610+ preCheck = ''
2611+ export NIX_REDIRECTS=/etc/protocols=${pkgs.iana-etc}/etc/protocols \
2612+ LD_PRELOAD=${pkgs.libredirect}/lib/libredirect.so
2613+ '';
2614+ postCheck = ''
2615+ unset NIX_REDIRECTS LD_PRELOAD
2616+ '';
2617+
26092618 buildInputs = with self; [ pytest case ];
26102619 propagatedBuildInputs = with self; [ kombu billiard pytz anyjson amqp eventlet ];
26112620
@@ -6054,6 +6063,8 @@ in {
60546063
60556064 };
60566065
6066+ hupper = callPackage ../development/python-modules/hupper {};
6067+
60576068 hovercraft = buildPythonPackage rec {
60586069 disabled = ! isPy3k;
60596070 name = "hovercraft-${version}";
@@ -7042,6 +7053,10 @@ in {
70427053
70437054 phpserialize = callPackage ../development/python-modules/phpserialize { };
70447055
7056+ plaster = callPackage ../development/python-modules/plaster {};
7057+
7058+ plaster-pastedeploy = callPackage ../development/python-modules/plaster-pastedeploy {};
7059+
70457060 plotly = callPackage ../development/python-modules/plotly { };
70467061
70477062 podcastparser = callPackage ../development/python-modules/podcastparser { };
@@ -7320,11 +7335,13 @@ in {
73207335 };
73217336
73227337 pyramid = buildPythonPackage rec {
7323− name = "pyramid-1.7";
7338+ pname = "pyramid";
7339+ version = "1.9.1";
7340+ name = "${pname}-${version}";
73247341
7325− src = pkgs.fetchurl {
7326− url = "mirror://pypi/p/pyramid/${name}.tar.gz";
7327− sha256 = "161qacv7qqln3q02kcqll0q2mmaypm701hn1llwdwnkaywkb3xi6";
7342+ src = fetchPypi {
7343+ inherit pname version;
7344+ sha256 = "0dhbzc4q0vsnv3aihy728aczg56xs6h9s1rmvr096q4lb6yln3w4";
73287345 };
73297346
73307347 buildInputs = with self; [
@@ -7333,6 +7350,9 @@ in {
73337350 webtest
73347351 zope_component
73357352 zope_interface
7353+ plaster
7354+ plaster-pastedeploy
7355+ hupper
73367356 ] ++ optional isPy26 unittest2;
73377357
73387358 propagatedBuildInputs = with self; [
@@ -8856,18 +8876,21 @@ in {
88568876 };
88578877
88588878 eventlet = buildPythonPackage rec {
8859− name = "eventlet-0.17.4";
8879+ pname = "eventlet";
8880+ version = "0.20.0";
8881+ name = "${pname}-${version}";
88608882
8861− src = pkgs.fetchurl {
8862− url = "mirror://pypi/e/eventlet/${name}.tar.gz";
8863− sha256 = "0vam0qfm8p5jkpp2cv12r5bnpnv902ld7q074h7x5y5g9rqyj8c7";
8883+ src = fetchPypi {
8884+ inherit pname version;
8885+ sha256 = "15bq5ybbigxnp5xwkps53zyhlg15lmcnq3ny2dppj0r0bylcs5rf";
88648886 };
88658887
88668888 buildInputs = with self; [ nose httplib2 pyopenssl ];
88678889
88688890 doCheck = false; # too much transient errors to bother
88698891
8870− propagatedBuildInputs = optionals (!isPyPy) [ self.greenlet ];
8892+ propagatedBuildInputs = optionals (!isPyPy) [ self.greenlet ] ++
8893+ (with self; [ enum-compat ]) ;
88718894
88728895 meta = {
88738896 homepage = http://pypi.python.org/pypi/eventlet/;
@@ -12645,13 +12668,15 @@ in {
1264512668 };
1264612669
1264712670 monotonic = buildPythonPackage rec {
12648− name = "monotonic-0.4";
12671+ pname = "monotonic";
12672+ version = "1.3";
12673+ name = "${pname}-${version}";
1264912674
1265012675 __propagatedImpureHostDeps = stdenv.lib.optional stdenv.isDarwin "/usr/lib/libc.dylib";
1265112676
12652− src = pkgs.fetchurl {
12653− url = "mirror://pypi/m/monotonic/${name}.tar.gz";
12654− sha256 = "1diab6hfh3jpa1f0scpqaqrawk4g97ss4v7gkn2yw8znvdm6abw5";
12677+ src = fetchPypi {
12678+ inherit pname version;
12679+ sha256 = "06vw7jwq96106plhlc5vz1v1xvjismdgw9wjyzvzf0ylglnrwiib";
1265512680 };
1265612681
1265712682 patchPhase = optionalString stdenv.isLinux ''
@@ -13868,12 +13893,13 @@ in {
1386813893 };
1386913894
1387013895 oslo-serialization = buildPythonPackage rec {
13871− name = "oslo.serialization-${version}";
13872− version = "1.10.0";
13896+ pname = "oslo.serialization";
13897+ version = "2.20.0";
13898+ name = "${pname}-${version}";
1387313899
13874− src = pkgs.fetchurl {
13875− url = "mirror://pypi/o/oslo.serialization/${name}.tar.gz";
13876− sha256 = "15k8aql2rx5jzv3hfvmd48vsyw172qa64bs3fmsyx25p37zyfy8a";
13900+ src = fetchPypi {
13901+ inherit pname version;
13902+ sha256 = "00j8hn8f0shk4anzb6zwn8w1sfxcil9a3jgxljwalq6ma2rzp9pw";
1387713903 };
1387813904
1387913905 patchPhase = ''
@@ -13915,12 +13941,13 @@ in {
1391513941
1391613942
1391713943 oslo-utils = buildPythonPackage rec {
13918− name = "oslo.utils-${version}";
13919− version = "2.6.0";
13944+ pname = "oslo.utils";
13945+ version = "3.29.0";
13946+ name = "${pname}-${version}";
1392013947
13921− src = pkgs.fetchurl {
13922− url = "mirror://pypi/o/oslo.utils/${name}.tar.gz";
13923− sha256 = "1prgi03nxkcykyja821qkycsqlnpyzw17mpvj8qf3pjmgb9gv1fy";
13948+ src = fetchPypi {
13949+ inherit pname version;
13950+ sha256 = "0l90ijw96czjd6z8bw88983rsnq5753iw86rhk1wi064w4rs19ig";
1392413951 };
1392513952
1392613953 propagatedBuildInputs = with self; [ pbr Babel six iso8601 pytz netaddr netifaces
@@ -14276,12 +14303,14 @@ in {
1427614303
1427714304
1427814305 oslo-service = buildPythonPackage rec {
14279− name = "oslo.service-${version}";
14280− version = "0.10.0";
14306+ pname = "oslo.service";
14307+ version = "1.26.0";
1428114308
14282− src = pkgs.fetchurl {
14283− url = "mirror://pypi/o/oslo.service/oslo.service-0.10.0.tar.gz";
14284− sha256 = "1pcnimc2a50arcgq355ad9lramf6y1yv974swgfj6w90v5c6p9gz";
14309+ name = "${pname}-${version}";
14310+
14311+ src = fetchPypi {
14312+ inherit pname version;
14313+ sha256 = "083q7z6nrska5fq12vnd70blphxscd7ivca2d78jk84d99h0m5n5";
1428514314 };
1428614315
1428714316 propagatedBuildInputs = with self; [
@@ -14289,16 +14318,15 @@ in {
1428914318 oslo-concurrency wrapt eventlet six oslo-serialization greenlet paste
1429014319 oslo-config monotonic iso8601 oslo-log pytz routes msgpack
1429114320 oslo-i18n argparse oslo-utils pbr enum34 netaddr stevedore netifaces
14292− pyinotify webob retrying pyinotify ];
14321+ pyinotify webob retrying pyinotify oslo-log ];
1429314322 buildInputs = with self; [
1429414323 oslosphinx oslotest pkgs.procps mock mox3 fixtures subunit testrepository
1429514324 testtools testscenarios
1429614325 ];
1429714326
14298− # failing tests
14299− preCheck = ''
14300− rm oslo_service/tests/test_service.py
14301− '';
14327+ ## cannot import eventlet due to:
14328+ # _proto_tcp = socket.getprotobyname('tcp')
14329+ doCheck = false;
1430214330
1430314331 meta = with stdenv.lib; {
1430414332 homepage = "http://wiki.openstack.org/wiki/Oslo#oslo.service";
@@ -14743,13 +14771,14 @@ in {
1474314771
1474414772
1474514773 oslo-concurrency = buildPythonPackage rec {
14746− name = "oslo-concurrency-${version}";
14747− version = "2.7.0";
14774+ pname = "oslo.concurrency";
14775+ version = "3.22.0";
14776+ name = "${pname}-${version}";
1474814777
14749− src = pkgs.fetchurl {
14750− url = "mirror://pypi/o/oslo.concurrency/oslo.concurrency-2.7.0.tar.gz";
14751− sha256 = "1yp8c87yi6fx1qbq4y1xkx47iiifg7jqzpcghivhxqra8vna185d";
14752− };
14778+ src = fetchPypi {
14779+ inherit pname version;
14780+ sha256 = "0nh1ycc2s6w05g5w63bsmmda0gw7qsrwlax3as8a0piai99z4m51";
14781+ };
1475314782
1475414783 propagatedBuildInputs = with self; [
1475514784 oslo-i18n argparse six wrapt oslo-utils pbr enum34 Babel netaddr monotonic
@@ -14757,8 +14786,8 @@ in {
1475714786 eventlet
1475814787 ];
1475914788 buildInputs = with self; [
14760− oslosphinx fixtures futures coverage oslotest
14761− ];
14789+ oslosphinx fixtures coverage oslotest
14790+ ] ++ (optional (!isPy3k) futures);
1476214791
1476314792 # too much magic in tests
1476414793 doCheck = false;
@@ -14838,16 +14867,17 @@ in {
1483814867 olefile = callPackage ../development/python-modules/olefile { };
1483914868
1484014869 oslo-log = buildPythonPackage rec {
14841− name = "oslo.log-${version}";
14842− version = "1.12.1";
14870+ name = "${pname}-${version}";
14871+ pname = "oslo.log";
14872+ version = "3.31.0";
1484314873
14844− src = pkgs.fetchurl {
14845− url = "mirror://pypi/o/oslo.log/${name}.tar.gz";
14846− sha256 = "10x596r19zjla5n1bf04j5vncx0c9gpc5wc2jlmgjbl3cyx3vgsv";
14874+ src = fetchPypi {
14875+ inherit pname version;
14876+ sha256 = "1w08cl98n8592pvb2gw01mqlwi8nnnpg1zy10mvj6xdpvfk2yqzz";
1484714877 };
1484814878
1484914879 propagatedBuildInputs = with self; [
14850− pbr Babel six iso8601 debtcollector
14880+ pbr Babel six iso8601 debtcollector dateutil
1485114881 oslo-utils oslo-i18n oslo-config oslo-serialization oslo-context
1485214882 ] ++ stdenv.lib.optional stdenv.isLinux pyinotify;
1485314883 buildInputs = with self; [ oslotest oslosphinx ];
@@ -14857,12 +14887,13 @@ in {
1485714887 };
1485814888
1485914889 oslo-context = buildPythonPackage rec {
14860− name = "oslo.context-${version}";
14861− version = "0.7.0";
14890+ name = "${pname}-${version}";
14891+ pname = "oslo.context";
14892+ version = "2.18.1";
1486214893
14863− src = pkgs.fetchurl {
14864− url = "mirror://pypi/o/oslo.context/${name}.tar.gz";
14865− sha256 = "18fmg9dhgngshk63wfb3ddrgx5br8jxkk3x30z40741mslp1fdjy";
14894+ src = fetchPypi {
14895+ inherit pname version;
14896+ sha256 = "1sc7qrwffsm15m91c17k0xiglv6bxh9sbksvxvrrgja82m57mgh6";
1486614897 };
1486714898
1486814899 propagatedBuildInputs = with self; [ pbr Babel ];
@@ -14874,14 +14905,14 @@ in {
1487414905
1487514906 oslo-i18n = buildPythonPackage rec {
1487614907 name = "oslo.i18n-${version}";
14877− version = "2.7.0";
14908+ version = "3.18.0";
1487814909
1487914910 src = pkgs.fetchurl {
1488014911 url = "mirror://pypi/o/oslo.i18n/${name}.tar.gz";
14881− sha256 = "11jgcvj36g97awh7fpar4xxgwrvzfahq6rw7xxqac32ia790ylcz";
14912+ sha256 = "19w6wil588fgppc7d42fqkrjs0y81ap62svzbij8hlb3w2d4a91n";
1488214913 };
1488314914
14884− propagatedBuildInputs = with self; [ pbr Babel six oslo-config ];
14915+ propagatedBuildInputs = with self; [ pbr Babel six ];
1488514916 buildInputs = with self; [ mock coverage oslotest ];
1488614917 patchPhase = ''
1488714918 sed -i 's@python@${python.interpreter}@' .testr.conf
@@ -14892,11 +14923,11 @@ in {
1489214923
1489314924 oslotest = buildPythonPackage rec {
1489414925 name = "oslotest-${version}";
14895− version = "1.12.0";
14926+ version = "2.18.0";
1489614927
1489714928 src = pkgs.fetchurl {
1489814929 url = "mirror://pypi/o/oslotest/${name}.tar.gz";
14899− sha256 = "17i92hymw1dwmmb5yv90m2gam2x21mc960q1pr7bly93x49h8666";
14930+ sha256 = "0a0zhpb4yp7g6d290jk7a4pfci4ciwhsrqzhbwbl2szi50gp7km1";
1490014931 };
1490114932
1490214933 patchPhase = ''
@@ -14904,28 +14935,27 @@ in {
1490414935 '';
1490514936
1490614937 propagatedBuildInputs = with self; [ pbr fixtures subunit six testrepository
14907− testscenarios testtools mock mox3 oslo-config os-client-config ];
14938+ os-client-config debtcollector testscenarios testtools mock mox3 os-client-config ];
1490814939 };
1490914940
1491014941 os-client-config = buildPythonPackage rec {
1491114942 name = "os-client-config-${version}";
14912− version = "1.8.1";
14943+ version = "1.28.0";
1491314944
1491414945 src = pkgs.fetchurl {
1491514946 url = "mirror://pypi/o/os-client-config/${name}.tar.gz";
14916− sha256 = "10hz4yp594mi1p7v1pvgsmx5w2rnb9y8d0jvb2lfv03ljnwzv8jz";
14947+ sha256 = "1f7q384b9drp3fqcg0w8aihv9k4idaay8vr3an187zjpgbx9rgp5";
1491714948 };
1491814949
14919− buildInputs = with self; [ pbr testtools testscenarios testrepository fixtures ];
14920− propagatedBuildInputs = with self; [ appdirs pyyaml keystoneauth1 ];
14950+ # requires oslotest but is a dependency of that package ...
14951+ doCheck = false;
14952+
14953+ buildInputs = with self; [ pbr testtools testscenarios testrepository fixtures jsonschema ];
14954+ propagatedBuildInputs = with self; [ appdirs pyyaml keystoneauth1 requestsexceptions ];
1492114955
1492214956 patchPhase = ''
1492314957 sed -i 's@python@${python.interpreter}@' .testr.conf
1492414958 '';
14925− # TODO: circular import on oslotest
14926− preCheck = ''
14927− rm os_client_config/tests/{test_config,test_cloud_config,test_environ}.py
14928− '';
1492914959 };
1493014960
1493114961 keystoneauth1 = callPackage ../development/python-modules/keystoneauth1 {};
@@ -14949,38 +14979,42 @@ in {
1494914979
1495014980 mox3 = buildPythonPackage rec {
1495114981 name = "mox3-${version}";
14952− version = "0.11.0";
14982+ version = "0.23.0";
1495314983
1495414984 src = pkgs.fetchurl {
1495514985 url = "mirror://pypi/m/mox3/${name}.tar.gz";
14956− sha256 = "09dkgki21v5zqrx575h1aazxsq5akkv0a90z644bk1ry9a4zg1pn";
14986+ sha256 = "0q26sg0jasday52a7y0cch13l0ssjvr4yqnvswqxsinj1lv5ld88";
1495714987 };
1495814988
1495914989 patchPhase = ''
1496014990 sed -i 's@python@${python.interpreter}@' .testr.conf
1496114991 '';
1496214992
14993+ # FAIL: mox3.tests.test_mox.RegexTest.testReprWithFlags
14994+ # ValueError: cannot use LOCALE flag with a str pattern
14995+ doCheck = !isPy36;
14996+
1496314997 buildInputs = with self; [ subunit testrepository testtools six ];
1496414998 propagatedBuildInputs = with self; [ pbr fixtures ];
1496514999 };
1496615000
1496715001 debtcollector = buildPythonPackage rec {
1496815002 name = "debtcollector-${version}";
14969− version = "0.9.0";
15003+ version = "1.17.0";
1497015004
1497115005 src = pkgs.fetchurl {
1497215006 url = "mirror://pypi/d/debtcollector/${name}.tar.gz";
14973− sha256 = "1mvdxdrnwlgfqg26s5himkjq6f06r2khlrignx36kkbyaix6j9xb";
15007+ sha256 = "0rh47fd5kgjcdv9dxr7xf0x308cvfic3h2zk03ifvb4pdc5kbqvi";
1497415008 };
1497515009 patchPhase = ''
1497615010 sed -i 's@python@${python.interpreter}@' .testr.conf
1497715011 '';
1497815012
1497915013 buildInputs = with self; [ pbr ];
14980− propagatedBuildInputs = with self; [ wrapt Babel six doc8 ];
15014+ propagatedBuildInputs = with self; [ wrapt Babel six doc8 ] ++
15015+ (optional (isPy26 || isPy27) funcsigs);
1498115016 checkInputs = with self; [ pbr Babel six wrapt testtools testscenarios
14982− testrepository subunit coverage oslotest ];
14983− doCheck = false; # oslo is broken
15017+ testrepository subunit coverage ];
1498415018 };
1498515019
1498615020 doc8 = callPackage ../development/python-modules/doc8 { };
@@ -18385,6 +18419,8 @@ in {
1838518419 };
1838618420 };
1838718421
18422+ requestsexceptions = callPackage ../development/python-modules/requestsexceptions {};
18423+
1838818424 requests_ntlm = callPackage ../development/python-modules/requests_ntlm { };
1838918425
1839018426 requests_oauthlib = callPackage ../development/python-modules/requests-oauthlib.nix { };
@@ -19067,14 +19103,16 @@ in {
1906719103 ropper = callPackage ../development/python-modules/ropper { };
1906819104
1906919105 routes = buildPythonPackage rec {
19070− name = "routes-1.12.3";
19106+ pname = "Routes";
19107+ version = "2.4.1";
19108+ name = "${pname}-${version}";
1907119109
19072− src = pkgs.fetchurl {
19073− url = mirror://pypi/R/Routes/Routes-1.12.3.tar.gz;
19074− sha256 = "eacc0dfb7c883374e698cebaa01a740d8c78d364b6e7f3df0312de042f77aa36";
19110+ src = fetchPypi {
19111+ inherit pname version;
19112+ sha256 = "1zamff3m0kc4vyfniyhxpkkcqv1rrgnmh37ykxv34nna1ws47vi6";
1907519113 };
1907619114
19077− propagatedBuildInputs = with self; [ paste webtest ];
19115+ propagatedBuildInputs = with self; [ paste webtest repoze_lru ];
1907819116
1907919117 meta = {
1908019118 description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions";
@@ -22509,15 +22547,16 @@ EOF
2250922547 };
2251022548
2251122549 webob = buildPythonPackage rec {
22512− version = "1.4.1";
22513− name = "webob-${version}";
22550+ pname = "WebOb";
22551+ version = "1.7.3";
22552+ name = "${pname}-${version}";
2251422553
22515− src = pkgs.fetchurl {
22516− url = "mirror://pypi/W/WebOb/WebOb-${version}.tar.gz";
22517− sha256 = "1nz9m6ijf46wfn33zfza13c0k1n4kjnmn3icdlrlgz5yj21vky0j";
22554+ src = fetchPypi {
22555+ inherit pname version;
22556+ sha256 = "10vjp2rvqiyvw157fk3sy7yds1gknzw97z4gk0qv1raskx5s2p76";
2251822557 };
2251922558
22520− propagatedBuildInputs = with self; [ nose ];
22559+ propagatedBuildInputs = with self; [ nose pytest ];
2252122560
2252222561 meta = {
2252322562 description = "WSGI request and response object";