keystoneauth1: enable tests
requires a later version of betamax, bumped to 0.8.0
This commit is contained in:
parent
7251699081
commit
97644a9f4f
@ -2,6 +2,7 @@
|
|||||||
, pbr, testtools, testresources, testrepository, mock
|
, pbr, testtools, testresources, testrepository, mock
|
||||||
, pep8, fixtures, mox3, requests-mock
|
, pep8, fixtures, mox3, requests-mock
|
||||||
, iso8601, requests, six, stevedore, webob, oslo-config
|
, iso8601, requests, six, stevedore, webob, oslo-config
|
||||||
|
, pyyaml, betamax, oauthlib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -15,12 +16,20 @@ buildPythonPackage rec {
|
|||||||
sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
|
sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pbr testtools testresources testrepository mock
|
buildInputs = [ pbr ];
|
||||||
pep8 fixtures mox3 requests-mock ];
|
checkInputs = [ pyyaml betamax oauthlib testtools testresources
|
||||||
|
testrepository mock pep8 fixtures mox3 requests-mock ];
|
||||||
propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
|
propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
|
||||||
|
|
||||||
# oslo_config is required but would create a circular dependency
|
doCheck = true;
|
||||||
doCheck = false;
|
# 1. oslo-config
|
||||||
|
# 2. oslo-utils
|
||||||
|
# 3. requests-kerberos
|
||||||
|
preCheck = ''
|
||||||
|
rm keystoneauth1/tests/unit/loading/test_{session,conf,adapter}.py
|
||||||
|
rm keystoneauth1/tests/unit/access/test_v{2,3}_access.py
|
||||||
|
rm keystoneauth1/tests/unit/extras/kerberos/test_fedkerb_loading.py
|
||||||
|
'';
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i 's@python@${python.interpreter}@' .testr.conf
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
||||||
substituteInPlace requirements.txt --replace "argparse" ""
|
substituteInPlace requirements.txt --replace "argparse" ""
|
||||||
|
@ -1313,11 +1313,11 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
betamax = buildPythonPackage rec {
|
betamax = buildPythonPackage rec {
|
||||||
name = "betamax-0.6.0";
|
name = "betamax-0.8.0";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "mirror://pypi/b/betamax/${name}.tar.gz";
|
url = "mirror://pypi/b/betamax/${name}.tar.gz";
|
||||||
sha256 = "0vw4d53jbbb2kdl7l891h8iyxklqcd6ldvgcyhw9hl40ljdhv1wz";
|
sha256 = "18f8v5gng3j773jlbbzx4rg1i4y2zw3m2l1zpmbvp8bh5a2q1i42";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ self.requests ];
|
propagatedBuildInputs = [ self.requests ];
|
||||||
|
Loading…
Reference in New Issue
Block a user