1{ buildPythonPackage 2, build 3, git 4, gnupg 5, pbr 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 preConfigure = '' 28 pythonOutputDistPhase() { touch $dist; } 29 ''; 30 31 checkInputs = [ 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 ") 50 ''; 51}