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.)
This commit is contained in:
Bjørn Forsman 2023-06-17 20:48:16 +02:00
parent c7640cf2e9
commit e3d764a4e2

View file

@ -35,7 +35,10 @@ buildPythonPackage rec {
nativeCheckInputs = [ stestr testscenarios requests-mock ]; nativeCheckInputs = [ stestr testscenarios requests-mock ];
checkPhase = '' 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; { meta = with lib; {