nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

keystoneauth1: enable tests

requires a later version of betamax, bumped to 0.8.0

(cherry picked from commit 97644a9f4f160e4a5eba77e462701f516a46b5ad)

authored by

makefu and committed by
Robin Gloster
7af7e873 e6fff35e

+15 -6
+13 -4
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 { ··· 16 15 sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n"; 17 16 }; 18 17 19 - buildInputs = [ pbr testtools testresources testrepository mock 20 - pep8 fixtures mox3 requests-mock ]; 18 + buildInputs = [ pbr ]; 19 + checkInputs = [ pyyaml betamax oauthlib testtools testresources 20 + testrepository mock pep8 fixtures mox3 requests-mock ]; 21 21 propagatedBuildInputs = [ iso8601 requests six stevedore webob ]; 22 22 23 - # oslo_config is required but would create a circular dependency 24 - doCheck = false; 23 + doCheck = true; 24 + # 1. oslo-config 25 + # 2. oslo-utils 26 + # 3. requests-kerberos 27 + preCheck = '' 28 + rm keystoneauth1/tests/unit/loading/test_{session,conf,adapter}.py 29 + rm keystoneauth1/tests/unit/access/test_v{2,3}_access.py 30 + rm keystoneauth1/tests/unit/extras/kerberos/test_fedkerb_loading.py 31 + ''; 25 32 postPatch = '' 26 33 sed -i 's@python@${python.interpreter}@' .testr.conf 27 34 substituteInPlace requirements.txt --replace "argparse" ""
+2 -2
pkgs/top-level/python-packages.nix
··· 1311 1311 }; 1312 1312 1313 1313 betamax = buildPythonPackage rec { 1314 - name = "betamax-0.6.0"; 1314 + name = "betamax-0.8.0"; 1315 1315 1316 1316 src = pkgs.fetchurl { 1317 1317 url = "mirror://pypi/b/betamax/${name}.tar.gz"; 1318 - sha256 = "0vw4d53jbbb2kdl7l891h8iyxklqcd6ldvgcyhw9hl40ljdhv1wz"; 1318 + sha256 = "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42"; 1319 1319 }; 1320 1320 1321 1321 propagatedBuildInputs = [ self.requests ];