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