1{ buildPythonPackage
2, git
3, gnupg
4, pbr
5, mock
6, sphinx
7, stestr
8, testresources
9, testscenarios
10, virtualenv
11}:
12
13buildPythonPackage rec {
14 pname = "pbr";
15 inherit (pbr) version;
16
17 src = pbr.src;
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
28 checkInputs = [
29 pbr
30 git
31 gnupg
32 mock
33 sphinx
34 stestr
35 testresources
36 testscenarios
37 virtualenv
38 ];
39
40 checkPhase = ''
41 stestr run -e <(echo "
42 pbr.tests.test_core.TestCore.test_console_script_develop
43 pbr.tests.test_core.TestCore.test_console_script_install
44 pbr.tests.test_wsgi.TestWsgiScripts.test_with_argument
45 pbr.tests.test_wsgi.TestWsgiScripts.test_wsgi_script_run
46 ")
47 '';
48}