1{
2 buildPythonPackage,
3 build,
4 git,
5 gnupg,
6 pbr,
7 sphinx,
8 stestr,
9 testresources,
10 testscenarios,
11 virtualenv,
12}:
13
14buildPythonPackage {
15 pname = "pbr";
16 inherit (pbr) version src;
17 format = "other";
18
19 postPatch = ''
20 # only a small portion of the listed packages are actually needed for running the tests
21 # so instead of removing them one by one remove everything
22 rm test-requirements.txt
23 '';
24
25 dontBuild = true;
26 dontInstall = true;
27 preConfigure = ''
28 pythonOutputDistPhase() { touch $dist; }
29 '';
30
31 nativeCheckInputs = [
32 pbr
33 build
34 git
35 gnupg
36 sphinx
37 stestr
38 testresources
39 testscenarios
40 virtualenv
41 ];
42
43 checkPhase = ''
44 stestr run -e <(echo "
45 pbr.tests.test_core.TestCore.test_console_script_develop
46 pbr.tests.test_core.TestCore.test_console_script_install
47 pbr.tests.test_wsgi.TestWsgiScripts.test_with_argument
48 pbr.tests.test_wsgi.TestWsgiScripts.test_wsgi_script_run
49 # Tests are failing because of fixture timeouts
50 pbr.tests.test_packaging.TestPEP517Support.test_pep_517_support
51 pbr.tests.test_packaging.TestRequirementParsing.test_requirement_parsing
52 ")
53 '';
54}