2024-06-05 15:53:02 +00:00
|
|
|
{ buildPythonPackage, stestr }:
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonPackage {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "stestr-tests";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (stestr) 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;
|
2022-11-04 12:27:35 +00:00
|
|
|
preConfigure = ''
|
|
|
|
pythonOutputDistPhase() { touch $dist; }
|
|
|
|
'';
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ stestr ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export PATH=$out/bin:$PATH
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
}
|