Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #29602 from makefu/pkgs/oslo-config/fix

oslo-config: fix build

authored by

Jörg Thalheim and committed by
GitHub
40a58dbc c74418a4

+247 -102
+1 -1
pkgs/development/libraries/gdal/default.nix
··· 28 28 "--with-png=${libpng.dev}" # optional 29 29 "--with-poppler=${poppler.dev}" # optional 30 30 "--with-libz=${zlib.dev}" # optional 31 - "--with-pg=${postgresql}/bin/pg_config" 31 + "--with-pg=${postgresql.dev}/bin/pg_config" 32 32 "--with-mysql=${mysql.lib.dev}/bin/mysql_config" 33 33 "--with-geotiff=${libgeotiff}" 34 34 "--with-sqlite3=${sqlite.dev}"
+20
pkgs/development/python-modules/hupper/default.nix
··· 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 + }
+16 -6
pkgs/development/python-modules/keystoneauth1/default.nix
··· 2 2 , pbr, testtools, testresources, testrepository, mock 3 3 , pep8, fixtures, mox3, requests-mock 4 4 , iso8601, requests, six, stevedore, webob, oslo-config 5 + , pyyaml, betamax, oauthlib 5 6 }: 6 7 7 8 buildPythonPackage rec { 8 9 pname = "keystoneauth1"; 9 - version = "3.1.0"; 10 + version = "3.2.0"; 10 11 name = "${pname}-${version}"; 11 12 disabled = isPyPy; # a test fails 12 13 13 14 src = fetchPypi { 14 15 inherit pname version; 15 - sha256 = "e5abfa8bbe866d52ca56afbe528d15214a60033cc1dc9804478cae7424f0f8fb"; 16 + sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n"; 16 17 }; 17 18 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 ]; 22 23 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 + ''; 23 33 postPatch = '' 24 34 sed -i 's@python@${python.interpreter}@' .testr.conf 25 35 substituteInPlace requirements.txt --replace "argparse" ""
+13 -6
pkgs/development/python-modules/oslo-config/default.nix
··· 1 - { buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock }: 1 + { lib, buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock, 2 + debtcollector, rfc3986, pyyaml, oslo-i18n }: 2 3 3 4 buildPythonPackage rec { 4 5 pname = "oslo.config"; 5 - version = "4.11.0"; 6 + version = "4.12.0"; 6 7 name = "${pname}-${version}"; 7 8 8 9 src = fetchPypi { 9 10 inherit pname version; 10 - sha256 = "1be8aaba466a3449fdb21ee8f7025b0d3d252c8c7568b8d5d05ceff58617cd05"; 11 + sha256 = "1pa9lajsadyq47bmxx12dxlcmnqsqlgnb55hwqas26lgnb2073dx"; 11 12 }; 12 13 13 - propagatedBuildInputs = [ pbr six netaddr stevedore ]; 14 + propagatedBuildInputs = [ pbr six netaddr stevedore debtcollector rfc3986 pyyaml oslo-i18n ]; 14 15 buildInputs = [ mock ]; 15 16 16 17 # TODO: circular import on oslo-i18n ··· 20 21 substituteInPlace requirements.txt --replace "argparse" "" 21 22 ''; 22 23 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 + 25 32 }
+22
pkgs/development/python-modules/plaster-pastedeploy/default.nix
··· 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 + }
+20
pkgs/development/python-modules/plaster/default.nix
··· 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 + }
+27
pkgs/development/python-modules/requestsexceptions/default.nix
··· 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 + }
+3 -3
pkgs/development/python-modules/sqlalchemy-migrate/default.nix
··· 12 12 sha256 = "0ld2bihp9kmf57ykgzrfgxs4j9kxlw79sgdj9sfn47snw3izb2p6"; 13 13 }; 14 14 15 - checkInputs = [ unittest2 scripttest pytz pylint mock testtools ]; 15 + checkInputs = [ unittest2 scripttest pytz pylint mock testtools tempest-lib ]; 16 16 propagatedBuildInputs = [ pbr tempita decorator sqlalchemy six sqlparse ]; 17 17 18 18 checkPhase = '' ··· 27 27 ${python.interpreter} setup.py test 28 28 ''; 29 29 30 - # Tests require tempest-lib which requires the broken oslo-config 31 - doCheck = false; 30 + doCheck = true; 32 31 33 32 meta = with stdenv.lib; { 34 33 homepage = http://code.google.com/p/sqlalchemy-migrate/; 35 34 description = "Schema migration tools for SQLAlchemy"; 36 35 license = licenses.asl20; 36 + maintainers = with maintainers; [ makefu ]; 37 37 }; 38 38 }
+125 -86
pkgs/top-level/python-packages.nix
··· 1313 1313 }; 1314 1314 1315 1315 betamax = buildPythonPackage rec { 1316 - name = "betamax-0.6.0"; 1316 + name = "betamax-0.8.0"; 1317 1317 1318 1318 src = pkgs.fetchurl { 1319 1319 url = "mirror://pypi/b/betamax/${name}.tar.gz"; 1320 - sha256 = "0vw4d53jbbb2kdl7l891h8iyxklqcd6ldvgcyhw9hl40ljdhv1wz"; 1320 + sha256 = "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"; 1321 1321 }; 1322 1322 1323 1323 propagatedBuildInputs = [ self.requests ]; ··· 2605 2605 # (linked from https://launchpad.net/ubuntu/+source/celery) 2606 2606 # https://github.com/celery/celery/pull/3736#issuecomment-274155454 from upstream 2607 2607 patches = [ ../development/python-modules/celery/fix_endless_python3.6_loop_logger_isa.patch ]; 2608 + 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 + ''; 2608 2617 2609 2618 buildInputs = with self; [ pytest case ]; 2610 2619 propagatedBuildInputs = with self; [ kombu billiard pytz anyjson amqp eventlet ]; ··· 6054 6063 6055 6064 }; 6056 6065 6066 + hupper = callPackage ../development/python-modules/hupper {}; 6067 + 6057 6068 hovercraft = buildPythonPackage rec { 6058 6069 disabled = ! isPy3k; 6059 6070 name = "hovercraft-${version}"; ··· 7042 7053 7043 7054 phpserialize = callPackage ../development/python-modules/phpserialize { }; 7044 7055 7056 + plaster = callPackage ../development/python-modules/plaster {}; 7057 + 7058 + plaster-pastedeploy = callPackage ../development/python-modules/plaster-pastedeploy {}; 7059 + 7045 7060 plotly = callPackage ../development/python-modules/plotly { }; 7046 7061 7047 7062 podcastparser = callPackage ../development/python-modules/podcastparser { }; ··· 7320 7335 }; 7321 7336 7322 7337 pyramid = buildPythonPackage rec { 7323 - name = "pyramid-1.7"; 7338 + pname = "pyramid"; 7339 + version = "1.9.1"; 7340 + name = "${pname}-${version}"; 7324 7341 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"; 7328 7345 }; 7329 7346 7330 7347 buildInputs = with self; [ ··· 7333 7350 webtest 7334 7351 zope_component 7335 7352 zope_interface 7353 + plaster 7354 + plaster-pastedeploy 7355 + hupper 7336 7356 ] ++ optional isPy26 unittest2; 7337 7357 7338 7358 propagatedBuildInputs = with self; [ ··· 8856 8876 }; 8857 8877 8858 8878 eventlet = buildPythonPackage rec { 8859 - name = "eventlet-0.17.4"; 8879 + pname = "eventlet"; 8880 + version = "0.20.0"; 8881 + name = "${pname}-${version}"; 8860 8882 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"; 8864 8886 }; 8865 8887 8866 8888 buildInputs = with self; [ nose httplib2 pyopenssl ]; 8867 8889 8868 8890 doCheck = false; # too much transient errors to bother 8869 8891 8870 - propagatedBuildInputs = optionals (!isPyPy) [ self.greenlet ]; 8892 + propagatedBuildInputs = optionals (!isPyPy) [ self.greenlet ] ++ 8893 + (with self; [ enum-compat ]) ; 8871 8894 8872 8895 meta = { 8873 8896 homepage = http://pypi.python.org/pypi/eventlet/; ··· 12645 12668 }; 12646 12669 12647 12670 monotonic = buildPythonPackage rec { 12648 - name = "monotonic-0.4"; 12671 + pname = "monotonic"; 12672 + version = "1.3"; 12673 + name = "${pname}-${version}"; 12649 12674 12650 12675 __propagatedImpureHostDeps = stdenv.lib.optional stdenv.isDarwin "/usr/lib/libc.dylib"; 12651 12676 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"; 12655 12680 }; 12656 12681 12657 12682 patchPhase = optionalString stdenv.isLinux '' ··· 13868 13893 }; 13869 13894 13870 13895 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}"; 13873 13899 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"; 13877 13903 }; 13878 13904 13879 13905 patchPhase = '' ··· 13915 13941 13916 13942 13917 13943 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}"; 13920 13947 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"; 13924 13951 }; 13925 13952 13926 13953 propagatedBuildInputs = with self; [ pbr Babel six iso8601 pytz netaddr netifaces ··· 14276 14303 14277 14304 14278 14305 oslo-service = buildPythonPackage rec { 14279 - name = "oslo.service-${version}"; 14280 - version = "0.10.0"; 14306 + pname = "oslo.service"; 14307 + version = "1.26.0"; 14308 + 14309 + name = "${pname}-${version}"; 14281 14310 14282 - src = pkgs.fetchurl { 14283 - url = "mirror://pypi/o/oslo.service/oslo.service-0.10.0.tar.gz"; 14284 - sha256 = "1pcnimc2a50arcgq355ad9lramf6y1yv974swgfj6w90v5c6p9gz"; 14311 + src = fetchPypi { 14312 + inherit pname version; 14313 + sha256 = "083q7z6nrska5fq12vnd70blphxscd7ivca2d78jk84d99h0m5n5"; 14285 14314 }; 14286 14315 14287 14316 propagatedBuildInputs = with self; [ ··· 14289 14318 oslo-concurrency wrapt eventlet six oslo-serialization greenlet paste 14290 14319 oslo-config monotonic iso8601 oslo-log pytz routes msgpack 14291 14320 oslo-i18n argparse oslo-utils pbr enum34 netaddr stevedore netifaces 14292 - pyinotify webob retrying pyinotify ]; 14321 + pyinotify webob retrying pyinotify oslo-log ]; 14293 14322 buildInputs = with self; [ 14294 14323 oslosphinx oslotest pkgs.procps mock mox3 fixtures subunit testrepository 14295 14324 testtools testscenarios 14296 14325 ]; 14297 14326 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; 14302 14330 14303 14331 meta = with stdenv.lib; { 14304 14332 homepage = "http://wiki.openstack.org/wiki/Oslo#oslo.service"; ··· 14743 14771 14744 14772 14745 14773 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}"; 14748 14777 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 + }; 14753 14782 14754 14783 propagatedBuildInputs = with self; [ 14755 14784 oslo-i18n argparse six wrapt oslo-utils pbr enum34 Babel netaddr monotonic ··· 14757 14786 eventlet 14758 14787 ]; 14759 14788 buildInputs = with self; [ 14760 - oslosphinx fixtures futures coverage oslotest 14761 - ]; 14789 + oslosphinx fixtures coverage oslotest 14790 + ] ++ (optional (!isPy3k) futures); 14762 14791 14763 14792 # too much magic in tests 14764 14793 doCheck = false; ··· 14838 14867 olefile = callPackage ../development/python-modules/olefile { }; 14839 14868 14840 14869 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"; 14843 14873 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"; 14847 14877 }; 14848 14878 14849 14879 propagatedBuildInputs = with self; [ 14850 - pbr Babel six iso8601 debtcollector 14880 + pbr Babel six iso8601 debtcollector dateutil 14851 14881 oslo-utils oslo-i18n oslo-config oslo-serialization oslo-context 14852 14882 ] ++ stdenv.lib.optional stdenv.isLinux pyinotify; 14853 14883 buildInputs = with self; [ oslotest oslosphinx ]; ··· 14857 14887 }; 14858 14888 14859 14889 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"; 14862 14893 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"; 14866 14897 }; 14867 14898 14868 14899 propagatedBuildInputs = with self; [ pbr Babel ]; ··· 14874 14905 14875 14906 oslo-i18n = buildPythonPackage rec { 14876 14907 name = "oslo.i18n-${version}"; 14877 - version = "2.7.0"; 14908 + version = "3.18.0"; 14878 14909 14879 14910 src = pkgs.fetchurl { 14880 14911 url = "mirror://pypi/o/oslo.i18n/${name}.tar.gz"; 14881 - sha256 = "11jgcvj36g97awh7fpar4xxgwrvzfahq6rw7xxqac32ia790ylcz"; 14912 + sha256 = "19w6wil588fgppc7d42fqkrjs0y81ap62svzbij8hlb3w2d4a91n"; 14882 14913 }; 14883 14914 14884 - propagatedBuildInputs = with self; [ pbr Babel six oslo-config ]; 14915 + propagatedBuildInputs = with self; [ pbr Babel six ]; 14885 14916 buildInputs = with self; [ mock coverage oslotest ]; 14886 14917 patchPhase = '' 14887 14918 sed -i 's@python@${python.interpreter}@' .testr.conf ··· 14892 14923 14893 14924 oslotest = buildPythonPackage rec { 14894 14925 name = "oslotest-${version}"; 14895 - version = "1.12.0"; 14926 + version = "2.18.0"; 14896 14927 14897 14928 src = pkgs.fetchurl { 14898 14929 url = "mirror://pypi/o/oslotest/${name}.tar.gz"; 14899 - sha256 = "17i92hymw1dwmmb5yv90m2gam2x21mc960q1pr7bly93x49h8666"; 14930 + sha256 = "0a0zhpb4yp7g6d290jk7a4pfci4ciwhsrqzhbwbl2szi50gp7km1"; 14900 14931 }; 14901 14932 14902 14933 patchPhase = '' ··· 14904 14935 ''; 14905 14936 14906 14937 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 ]; 14908 14939 }; 14909 14940 14910 14941 os-client-config = buildPythonPackage rec { 14911 14942 name = "os-client-config-${version}"; 14912 - version = "1.8.1"; 14943 + version = "1.28.0"; 14913 14944 14914 14945 src = pkgs.fetchurl { 14915 14946 url = "mirror://pypi/o/os-client-config/${name}.tar.gz"; 14916 - sha256 = "10hz4yp594mi1p7v1pvgsmx5w2rnb9y8d0jvb2lfv03ljnwzv8jz"; 14947 + sha256 = "1f7q384b9drp3fqcg0w8aihv9k4idaay8vr3an187zjpgbx9rgp5"; 14917 14948 }; 14918 14949 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 ]; 14921 14955 14922 14956 patchPhase = '' 14923 14957 sed -i 's@python@${python.interpreter}@' .testr.conf 14924 - ''; 14925 - # TODO: circular import on oslotest 14926 - preCheck = '' 14927 - rm os_client_config/tests/{test_config,test_cloud_config,test_environ}.py 14928 14958 ''; 14929 14959 }; 14930 14960 ··· 14949 14979 14950 14980 mox3 = buildPythonPackage rec { 14951 14981 name = "mox3-${version}"; 14952 - version = "0.11.0"; 14982 + version = "0.23.0"; 14953 14983 14954 14984 src = pkgs.fetchurl { 14955 14985 url = "mirror://pypi/m/mox3/${name}.tar.gz"; 14956 - sha256 = "09dkgki21v5zqrx575h1aazxsq5akkv0a90z644bk1ry9a4zg1pn"; 14986 + sha256 = "0q26sg0jasday52a7y0cch13l0ssjvr4yqnvswqxsinj1lv5ld88"; 14957 14987 }; 14958 14988 14959 14989 patchPhase = '' 14960 14990 sed -i 's@python@${python.interpreter}@' .testr.conf 14961 14991 ''; 14962 14992 14993 + # FAIL: mox3.tests.test_mox.RegexTest.testReprWithFlags 14994 + # ValueError: cannot use LOCALE flag with a str pattern 14995 + doCheck = !isPy36; 14996 + 14963 14997 buildInputs = with self; [ subunit testrepository testtools six ]; 14964 14998 propagatedBuildInputs = with self; [ pbr fixtures ]; 14965 14999 }; 14966 15000 14967 15001 debtcollector = buildPythonPackage rec { 14968 15002 name = "debtcollector-${version}"; 14969 - version = "0.9.0"; 15003 + version = "1.17.0"; 14970 15004 14971 15005 src = pkgs.fetchurl { 14972 15006 url = "mirror://pypi/d/debtcollector/${name}.tar.gz"; 14973 - sha256 = "1mvdxdrnwlgfqg26s5himkjq6f06r2khlrignx36kkbyaix6j9xb"; 15007 + sha256 = "0rh47fd5kgjcdv9dxr7xf0x308cvfic3h2zk03ifvb4pdc5kbqvi"; 14974 15008 }; 14975 15009 patchPhase = '' 14976 15010 sed -i 's@python@${python.interpreter}@' .testr.conf 14977 15011 ''; 14978 15012 14979 15013 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); 14981 15016 checkInputs = with self; [ pbr Babel six wrapt testtools testscenarios 14982 - testrepository subunit coverage oslotest ]; 14983 - doCheck = false; # oslo is broken 15017 + testrepository subunit coverage ]; 14984 15018 }; 14985 15019 14986 15020 doc8 = callPackage ../development/python-modules/doc8 { }; ··· 18385 18419 }; 18386 18420 }; 18387 18421 18422 + requestsexceptions = callPackage ../development/python-modules/requestsexceptions {}; 18423 + 18388 18424 requests_ntlm = callPackage ../development/python-modules/requests_ntlm { }; 18389 18425 18390 18426 requests_oauthlib = callPackage ../development/python-modules/requests-oauthlib.nix { }; ··· 19067 19103 ropper = callPackage ../development/python-modules/ropper { }; 19068 19104 19069 19105 routes = buildPythonPackage rec { 19070 - name = "routes-1.12.3"; 19106 + pname = "Routes"; 19107 + version = "2.4.1"; 19108 + name = "${pname}-${version}"; 19071 19109 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"; 19075 19113 }; 19076 19114 19077 - propagatedBuildInputs = with self; [ paste webtest ]; 19115 + propagatedBuildInputs = with self; [ paste webtest repoze_lru ]; 19078 19116 19079 19117 meta = { 19080 19118 description = "A Python re-implementation of the Rails routes system for mapping URLs to application actions"; ··· 22509 22547 }; 22510 22548 22511 22549 webob = buildPythonPackage rec { 22512 - version = "1.4.1"; 22513 - name = "webob-${version}"; 22550 + pname = "WebOb"; 22551 + version = "1.7.3"; 22552 + name = "${pname}-${version}"; 22514 22553 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"; 22518 22557 }; 22519 22558 22520 - propagatedBuildInputs = with self; [ nose ]; 22559 + propagatedBuildInputs = with self; [ nose pytest ]; 22521 22560 22522 22561 meta = { 22523 22562 description = "WSGI request and response object";