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