summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2023-06-17 20:48:16 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-06-19 21:30:49 +0200
commite3d764a4e2d14a8c0b0f846df5bd53828523e3cf (patch)
tree8304461c6098c080f26311bd14dfcdda4ffe491b
parentc7640cf2e930270fc9601a7f2d9cd85e9ce4d893 (diff)
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.)
-rw-r--r--pkgs/development/python-modules/python-jenkins/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/python-jenkins/default.nix b/pkgs/development/python-modules/python-jenkins/default.nix
index 863ab45ed548..7c1f8e720f5b 100644
--- a/pkgs/development/python-modules/python-jenkins/default.nix
+++ b/pkgs/development/python-modules/python-jenkins/default.nix
@@ -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; {