blob: ede61b0dc11c2a47ac2db730bb8d5c936cbb6afc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
buildPythonPackage,
build,
git,
gnupg,
pbr,
sphinx,
stestr,
testresources,
testscenarios,
virtualenv,
}:
buildPythonPackage {
pname = "pbr";
inherit (pbr) version src;
pyproject = false;
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;
preConfigure = ''
pythonOutputDistPhase() { touch $dist; }
'';
nativeCheckInputs = [
pbr
build
git
gnupg
sphinx
stestr
testresources
testscenarios
virtualenv
];
checkPhase = ''
stestr run -e <(echo "
pbr.tests.test_core.TestCore.test_console_script_develop
pbr.tests.functional.test_console_scripts.TestConsoleScripts.test_console_script_install
pbr.tests.functional.test_wsgi_scripts.TestWsgiScripts.test_with_argument
pbr.tests.functional.test_wsgi_scripts.TestWsgiScripts.test_wsgi_script_run
# Tests are failing because of fixture timeouts
pbr.tests.functional.test_pep517.TestPEP517Support.test_pep_517_support
pbr.tests.functional.test_requirements.TestRequirementParsing.test_requirement_parsing
")
'';
}
|