nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 48 lines 888 B view raw
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 28 checkInputs = [ 29 pbr 30 build 31 git 32 gnupg 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}