2021-12-06 16:07:01 +00:00
|
|
|
{ buildPythonPackage
|
2022-03-30 09:31:56 +00:00
|
|
|
, build
|
2021-09-18 10:52:07 +00:00
|
|
|
, git
|
|
|
|
, gnupg
|
|
|
|
, pbr
|
|
|
|
, sphinx
|
|
|
|
, stestr
|
|
|
|
, testresources
|
|
|
|
, testscenarios
|
|
|
|
, virtualenv
|
|
|
|
}:
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
buildPythonPackage {
|
2021-09-18 10:52:07 +00:00
|
|
|
pname = "pbr";
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (pbr) 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-21 17:40:18 +00:00
|
|
|
preConfigure = ''
|
|
|
|
pythonOutputDistPhase() { touch $dist; }
|
|
|
|
'';
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
pbr
|
2022-03-30 09:31:56 +00:00
|
|
|
build
|
2021-09-18 10:52:07 +00:00
|
|
|
git
|
|
|
|
gnupg
|
|
|
|
sphinx
|
|
|
|
stestr
|
|
|
|
testresources
|
|
|
|
testscenarios
|
|
|
|
virtualenv
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
stestr run -e <(echo "
|
|
|
|
pbr.tests.test_core.TestCore.test_console_script_develop
|
|
|
|
pbr.tests.test_core.TestCore.test_console_script_install
|
|
|
|
pbr.tests.test_wsgi.TestWsgiScripts.test_with_argument
|
|
|
|
pbr.tests.test_wsgi.TestWsgiScripts.test_wsgi_script_run
|
|
|
|
")
|
|
|
|
'';
|
|
|
|
}
|