git.iko.soy/typeable/nixpkgs
on master help sign in
oslo-config: 4.11.0 -> 4.12.0, fix build

also updated the following dependencies: keystoneauth1: 3.1.0 -> 3.2.0 disabled tests which require oslo-config, oslo-test or requests-kerberos oslo-i18n: 2.7.0 -> 3.18.0 oslotest: 1.12.0 -> 2.18.0 os-client-config: 1.8.1 -> 1.28.0 needed to disable testing due to circular dependency with oslotest mox3: 0.11.0 -> 0.23.0 disable tests for py36 due to upstream bug debtcollector: 0.9.0 -> 1.17.0 tests enabled extra packages: requestsexceptions: init at 1.3.0

commit72516990814a3636eac00cb0874dc29166d1e440 authormakefu <github@syntax-fehler.de> dateWed 20 Sep 2017, 14:52 (9 years ago) parentd757d81
4 files changed+63−31
pkgs/development/python-modules/keystoneauth1/default.nix+5−4 pkgs/development/python-modules/oslo-config/default.nix+5−6 pkgs/development/python-modules/requestsexceptions/default.nix+27 pkgs/top-level/python-packages.nix+26−21
pkgs/development/python-modules/keystoneauth1/default.nix+5−4
@@ -6,20 +6,21 @@
66
77buildPythonPackage rec {
88 pname = "keystoneauth1";
9− version = "3.1.0";
9+ version = "3.2.0";
1010 name = "${pname}-${version}";
1111 disabled = isPyPy; # a test fails
1212
1313 src = fetchPypi {
1414 inherit pname version;
15− sha256 = "e5abfa8bbe866d52ca56afbe528d15214a60033cc1dc9804478cae7424f0f8fb";
15+ sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
1616 };
1717
1818 buildInputs = [ pbr testtools testresources testrepository mock
1919 pep8 fixtures mox3 requests-mock ];
20− propagatedBuildInputs = [ iso8601 requests six stevedore
21− webob oslo-config ];
20+ propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
2221
22+ # oslo_config is required but would create a circular dependency
23+ doCheck = false;
2324 postPatch = ''
2425 sed -i 's@python@${python.interpreter}@' .testr.conf
2526 substituteInPlace requirements.txt --replace "argparse" ""
pkgs/development/python-modules/oslo-config/default.nix+5−6
@@ -1,16 +1,17 @@
1−{ buildPythonPackage, fetchPypi, pbr, six, netaddr, stevedore, mock }:
1+{ 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,4 @@ buildPythonPackage rec {
2021 substituteInPlace requirements.txt --replace "argparse" ""
2122 '';
2223
23− # Requires a bunch of new packages
24− meta.broken = true;
2524}
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/top-level/python-packages.nix+26−21
@@ -14852,14 +14852,14 @@ in {
1485214852
1485314853 oslo-i18n = buildPythonPackage rec {
1485414854 name = "oslo.i18n-${version}";
14855− version = "2.7.0";
14855+ version = "3.18.0";
1485614856
1485714857 src = pkgs.fetchurl {
1485814858 url = "mirror://pypi/o/oslo.i18n/${name}.tar.gz";
14859− sha256 = "11jgcvj36g97awh7fpar4xxgwrvzfahq6rw7xxqac32ia790ylcz";
14859+ sha256 = "19w6wil588fgppc7d42fqkrjs0y81ap62svzbij8hlb3w2d4a91n";
1486014860 };
1486114861
14862− propagatedBuildInputs = with self; [ pbr Babel six oslo-config ];
14862+ propagatedBuildInputs = with self; [ pbr Babel six ];
1486314863 buildInputs = with self; [ mock coverage oslotest ];
1486414864 patchPhase = ''
1486514865 sed -i 's@python@${python.interpreter}@' .testr.conf
@@ -14870,11 +14870,11 @@ in {
1487014870
1487114871 oslotest = buildPythonPackage rec {
1487214872 name = "oslotest-${version}";
14873− version = "1.12.0";
14873+ version = "2.18.0";
1487414874
1487514875 src = pkgs.fetchurl {
1487614876 url = "mirror://pypi/o/oslotest/${name}.tar.gz";
14877− sha256 = "17i92hymw1dwmmb5yv90m2gam2x21mc960q1pr7bly93x49h8666";
14877+ sha256 = "0a0zhpb4yp7g6d290jk7a4pfci4ciwhsrqzhbwbl2szi50gp7km1";
1487814878 };
1487914879
1488014880 patchPhase = ''
@@ -14882,28 +14882,27 @@ in {
1488214882 '';
1488314883
1488414884 propagatedBuildInputs = with self; [ pbr fixtures subunit six testrepository
14885− testscenarios testtools mock mox3 oslo-config os-client-config ];
14885+ os-client-config debtcollector testscenarios testtools mock mox3 os-client-config ];
1488614886 };
1488714887
1488814888 os-client-config = buildPythonPackage rec {
1488914889 name = "os-client-config-${version}";
14890− version = "1.8.1";
14890+ version = "1.28.0";
1489114891
1489214892 src = pkgs.fetchurl {
1489314893 url = "mirror://pypi/o/os-client-config/${name}.tar.gz";
14894− sha256 = "10hz4yp594mi1p7v1pvgsmx5w2rnb9y8d0jvb2lfv03ljnwzv8jz";
14894+ sha256 = "1f7q384b9drp3fqcg0w8aihv9k4idaay8vr3an187zjpgbx9rgp5";
1489514895 };
1489614896
14897− buildInputs = with self; [ pbr testtools testscenarios testrepository fixtures ];
14898− propagatedBuildInputs = with self; [ appdirs pyyaml keystoneauth1 ];
14897+ # requires oslotest but is a dependency of that package ...
14898+ doCheck = false;
14899+
14900+ buildInputs = with self; [ pbr testtools testscenarios testrepository fixtures jsonschema ];
14901+ propagatedBuildInputs = with self; [ appdirs pyyaml keystoneauth1 requestsexceptions ];
1489914902
1490014903 patchPhase = ''
1490114904 sed -i 's@python@${python.interpreter}@' .testr.conf
1490214905 '';
14903− # TODO: circular import on oslotest
14904− preCheck = ''
14905− rm os_client_config/tests/{test_config,test_cloud_config,test_environ}.py
14906− '';
1490714906 };
1490814907
1490914908 keystoneauth1 = callPackage ../development/python-modules/keystoneauth1 {};
@@ -14927,38 +14926,42 @@ in {
1492714926
1492814927 mox3 = buildPythonPackage rec {
1492914928 name = "mox3-${version}";
14930− version = "0.11.0";
14929+ version = "0.23.0";
1493114930
1493214931 src = pkgs.fetchurl {
1493314932 url = "mirror://pypi/m/mox3/${name}.tar.gz";
14934− sha256 = "09dkgki21v5zqrx575h1aazxsq5akkv0a90z644bk1ry9a4zg1pn";
14933+ sha256 = "0q26sg0jasday52a7y0cch13l0ssjvr4yqnvswqxsinj1lv5ld88";
1493514934 };
1493614935
1493714936 patchPhase = ''
1493814937 sed -i 's@python@${python.interpreter}@' .testr.conf
1493914938 '';
1494014939
14940+ # FAIL: mox3.tests.test_mox.RegexTest.testReprWithFlags
14941+ # ValueError: cannot use LOCALE flag with a str pattern
14942+ doCheck = !isPy36;
14943+
1494114944 buildInputs = with self; [ subunit testrepository testtools six ];
1494214945 propagatedBuildInputs = with self; [ pbr fixtures ];
1494314946 };
1494414947
1494514948 debtcollector = buildPythonPackage rec {
1494614949 name = "debtcollector-${version}";
14947− version = "0.9.0";
14950+ version = "1.17.0";
1494814951
1494914952 src = pkgs.fetchurl {
1495014953 url = "mirror://pypi/d/debtcollector/${name}.tar.gz";
14951− sha256 = "1mvdxdrnwlgfqg26s5himkjq6f06r2khlrignx36kkbyaix6j9xb";
14954+ sha256 = "0rh47fd5kgjcdv9dxr7xf0x308cvfic3h2zk03ifvb4pdc5kbqvi";
1495214955 };
1495314956 patchPhase = ''
1495414957 sed -i 's@python@${python.interpreter}@' .testr.conf
1495514958 '';
1495614959
1495714960 buildInputs = with self; [ pbr ];
14958− propagatedBuildInputs = with self; [ wrapt Babel six doc8 ];
14961+ propagatedBuildInputs = with self; [ wrapt Babel six doc8 ] ++
14962+ (optional (isPy26 || isPy27) funcsigs);
1495914963 checkInputs = with self; [ pbr Babel six wrapt testtools testscenarios
14960− testrepository subunit coverage oslotest ];
14961− doCheck = false; # oslo is broken
14964+ testrepository subunit coverage ];
1496214965 };
1496314966
1496414967 doc8 = callPackage ../development/python-modules/doc8 { };
@@ -18363,6 +18366,8 @@ in {
1836318366 };
1836418367 };
1836518368
18369+ requestsexceptions = callPackage ../development/python-modules/requestsexceptions {};
18370+
1836618371 requests_ntlm = callPackage ../development/python-modules/requests_ntlm { };
1836718372
1836818373 requests_oauthlib = callPackage ../development/python-modules/requests-oauthlib.nix { };