2017-06-18 11:59:17 +02:00
|
|
|
{ buildPythonPackage, isPyPy, fetchPypi, python
|
|
|
|
, pbr, testtools, testresources, testrepository, mock
|
|
|
|
, pep8, fixtures, mox3, requests-mock
|
|
|
|
, iso8601, requests, six, stevedore, webob, oslo-config
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keystoneauth1";
|
2017-09-20 14:52:04 +02:00
|
|
|
version = "3.2.0";
|
2017-06-18 11:59:17 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
disabled = isPyPy; # a test fails
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-09-20 14:52:04 +02:00
|
|
|
sha256 = "0rg3harfyvai34lrjiqnl1crmvswjvj8nsviasnz4b9pcvp3d03n";
|
2017-06-18 11:59:17 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pbr testtools testresources testrepository mock
|
|
|
|
pep8 fixtures mox3 requests-mock ];
|
2017-09-20 14:52:04 +02:00
|
|
|
propagatedBuildInputs = [ iso8601 requests six stevedore webob ];
|
2017-06-18 11:59:17 +02:00
|
|
|
|
2017-09-20 14:52:04 +02:00
|
|
|
# oslo_config is required but would create a circular dependency
|
|
|
|
doCheck = false;
|
2017-06-18 11:59:17 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
2017-08-11 00:02:24 +02:00
|
|
|
substituteInPlace requirements.txt --replace "argparse" ""
|
2017-06-18 11:59:17 +02:00
|
|
|
'';
|
|
|
|
}
|