git.iko.soy/typeable/nixpkgs
on master help sign in
keystoneauth1: enable tests

requires a later version of betamax, bumped to 0.8.0

commit97644a9f4f160e4a5eba77e462701f516a46b5ad authormakefu <github@syntax-fehler.de> dateWed 20 Sep 2017, 16:12 (9 years ago) parent7251699
2 files changed+15−6
pkgs/development/python-modules/keystoneauth1/default.nix+13−4 pkgs/top-level/python-packages.nix+2−2
pkgs/development/python-modules/keystoneauth1/default.nix+13−4
@@ -2,6 +2,7 @@
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 {
@@ -15,12 +16,20 @@ buildPythonPackage rec {
1516 sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
1617 };
1718
18− buildInputs = [ pbr testtools testresources testrepository mock
19− pep8 fixtures mox3 requests-mock ];
19+ buildInputs = [ pbr ];
20+ checkInputs = [ pyyaml betamax oauthlib testtools testresources
21+ testrepository mock pep8 fixtures mox3 requests-mock ];
2022 propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
2123
22− # oslo_config is required but would create a circular dependency
23− doCheck = false;
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+ '';
2433 postPatch = ''
2534 sed -i 's@python@${python.interpreter}@' .testr.conf
2635 substituteInPlace requirements.txt --replace "argparse" ""
pkgs/top-level/python-packages.nix+2−2
@@ -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 ];