@@ -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" ""