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
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "keystoneauth1";
|
2017-08-24 18:34:20 +01:00
|
|
|
version = "3.1.0";
|
2017-06-18 10:59:17 +01:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
disabled = isPyPy; # a test fails
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-08-24 18:34:20 +01:00
|
|
|
sha256 = "e5abfa8bbe866d52ca56afbe528d15214a60033cc1dc9804478cae7424f0f8fb";
|
2017-06-18 10:59:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pbr testtools testresources testrepository mock
|
|
|
|
pep8 fixtures mox3 requests-mock ];
|
|
|
|
propagatedBuildInputs = [ iso8601 requests six stevedore
|
|
|
|
webob oslo-config ];
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
}
|