2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
2021-09-18 10:52:07 +00:00
|
|
|
, oslo-config
|
|
|
|
, oslotest
|
|
|
|
, stestr
|
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonPackage {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "oslotest-tests";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (oslotest) version src;
|
|
|
|
format = "other";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# only a small portion of the listed packages are actually needed for running the tests
|
|
|
|
# so instead of removing them one by one remove everything
|
|
|
|
rm test-requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontInstall = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
oslotest
|
|
|
|
oslo-config
|
|
|
|
stestr
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run
|
|
|
|
'';
|
|
|
|
}
|