2017-10-25 19:04:35 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, python,
|
2017-05-03 21:18:23 +01:00
|
|
|
pbr, Babel, testrepository, subunit, testtools,
|
|
|
|
coverage, oslosphinx, oslotest, testscenarios, six, ddt
|
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
2017-05-27 13:24:47 +01:00
|
|
|
version = "0.8.2";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "os-testr";
|
|
|
|
name = "${pname}-${version}";
|
2017-05-03 21:18:23 +01:00
|
|
|
|
2017-10-25 19:04:35 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-05-27 13:24:47 +01:00
|
|
|
sha256 = "d8a60bd56c541714a5cab4d1996c8ddfdb5c7c35393d55be617803048c170837";
|
2017-05-03 21:18:23 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's@python@${python.interpreter}@' .testr.conf
|
|
|
|
sed -i 's@python@${python.interpreter}@' os_testr/tests/files/testr-conf
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PATH=$PATH:$out/bin
|
|
|
|
${python.interpreter} setup.py test
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pbr Babel testrepository subunit testtools ];
|
|
|
|
buildInputs = [ coverage oslosphinx oslotest testscenarios six ddt ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A testr wrapper to provide functionality for OpenStack projects";
|
|
|
|
homepage = http://docs.openstack.org/developer/os-testr/;
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|