diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-09-06 00:50:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 00:50:28 +0200 |
commit | f73008d3b9536cc3b235b2cc5bff8738758935d0 (patch) | |
tree | 9caa377af6c8f3d44c043ac56441a4731e24a0ea /pkgs/development | |
parent | 9b6dea10be2d02646d0d5d9199ea390a39a42991 (diff) | |
parent | 110fec86264a9a3b9efcb9909baa6f41b8e5c26f (diff) |
Merge pull request #251952 from gador/python-jenkins-1-8-1
python3Packages.python-jenkins: 1.7.0 -> 1.8.1
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/python-jenkins/default.nix | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/python-jenkins/default.nix b/pkgs/development/python-modules/python-jenkins/default.nix index 07044b9499bb9..af0671279ab15 100644 --- a/pkgs/development/python-modules/python-jenkins/default.nix +++ b/pkgs/development/python-modules/python-jenkins/default.nix @@ -12,15 +12,17 @@ , requests , requests-mock , stestr +, multiprocess +, pythonRelaxDepsHook }: buildPythonPackage rec { pname = "python-jenkins"; - version = "1.7.0"; + version = "1.8.1"; src = fetchPypi { inherit pname version; - sha256 = "01jid5s09lr3kayr2h1z9n8h9nhyw3jxv9c4b5hrlxijknkqzvfy"; + hash = "sha256-/18dklOdkD+GmwLq8rExREfm1tePdn7c/dkpZ9UyucY="; }; # test uses timeout mechanism unsafe for use with the "spawn" @@ -30,18 +32,25 @@ buildPythonPackage rec { --replace test_jenkins_open_no_timeout dont_test_jenkins_open_no_timeout ''; + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + pythonRelaxDeps = [ + "setuptools" + ]; + buildInputs = [ mock ]; propagatedBuildInputs = [ pbr pyyaml setuptools six multi_key_dict requests ]; __darwinAllowLocalNetworking = true; - nativeCheckInputs = [ stestr testscenarios requests-mock ]; - checkPhase = '' - # 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)" - ''; + nativeCheckInputs = [ stestr testscenarios requests-mock multiprocess ]; + checkPhase = '' + # 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; { description = "Python bindings for the remote Jenkins API"; |