2017-06-18 10:59:17 +01:00
|
|
|
{ buildPythonPackage, isPyPy, fetchPypi, python
|
|
|
|
, pbr, testtools, testresources, testrepository, mock
|
|
|
|
, pep8, fixtures, mox3, requests-mock
|
|
|
|
, iso8601, requests, six, stevedore, webob, oslo-config
|
2017-09-20 15:12:22 +01:00
|
|
|
, pyyaml, betamax, oauthlib
|
2017-06-18 10:59:17 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keystoneauth1";
|
2017-09-20 13:52:04 +01:00
|
|
|
version = "3.2.0";
|
2017-06-18 10:59:17 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
disabled = isPyPy; # a test fails
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-09-20 13:52:04 +01:00
|
|
|
sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
|
2017-06-18 10:59:17 +01:00
|
|
|
};
|
|
|
|
|
2017-09-20 15:12:22 +01:00
|
|
|
buildInputs = [ pbr ];
|
|
|
|
checkInputs = [ pyyaml betamax oauthlib testtools testresources
|
|
|
|
testrepository mock pep8 fixtures mox3 requests-mock ];
|
2017-09-20 13:52:04 +01:00
|
|
|
propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
|
2017-06-18 10:59:17 +01:00
|
|
|
|
2017-09-20 15:12:22 +01:00
|
|
|
doCheck = true;
|
|
|
|
# 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
|
|
|
|
'';
|
2017-06-18 10:59:17 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
2017-08-10 23:02:24 +01:00
|
|
|
substituteInPlace requirements.txt --replace "argparse" ""
|
2017-06-18 10:59:17 +01:00
|
|
|
'';
|
|
|
|
}
|