Commit e3d764a4 authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

python3.pkgs.python-jenkins: fix build by skipping some tests

8 tests currently fail because nixpkgs has setuptools>=66.0.0 which is
backward incompatible wrt. PEP 440 non-conforming version strings, and
python-jenkins has tests that trigger that code path. Skip the tests to
fix the build.

(I tried to use multiple stestr -E regexes, but seemingly only one got
used, so I had to use one overlong line to fit the patterns.)
parent c7640cf2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -35,7 +35,10 @@ buildPythonPackage rec {

   nativeCheckInputs = [ stestr testscenarios requests-mock ];
   checkPhase = ''
     stestr run
     # Skip tests that fail due to setuptools>=66.0.0 rejecting PEP 440
     # non-conforming versions. See
     # https://github.com/pypa/setuptools/issues/2497 for details.
     stestr run -E "tests.test_plugins.(PluginsTestScenarios.test_plugin_version_comparison|PluginsTestScenarios.test_plugin_version_object_comparison|PluginsTest.test_plugin_equal|PluginsTest.test_plugin_not_equal)"
   '';

  meta = with lib; {