python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / python-modules / pbr / tests.nix
blobb04751231872edd6efe864fc859fc19759e20f54
1 { buildPythonPackage
2 , build
3 , git
4 , gnupg
5 , pbr
6 , sphinx
7 , stestr
8 , testresources
9 , testscenarios
10 , virtualenv
13 buildPythonPackage rec {
14   pname = "pbr";
15   inherit (pbr) version;
17   src = pbr.src;
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   '';
25   dontBuild = true;
26   dontInstall = true;
27   preConfigure = ''
28     pythonOutputDistPhase() { touch $dist; }
29   '';
31   checkInputs = [
32     pbr
33     build
34     git
35     gnupg
36     sphinx
37     stestr
38     testresources
39     testscenarios
40     virtualenv
41   ];
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   '';