19 buildPythonPackage rec {
20 pname = "python-jenkins";
22 format = "setuptools";
25 inherit pname version;
26 hash = "sha256-VufauwYHvbjh1vxtLUMBq+2+2RZdorIG+svTBxy27ss=";
29 # test uses timeout mechanism unsafe for use with the "spawn"
30 # multiprocessing backend used on macos
31 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
32 substituteInPlace tests/test_jenkins_sockets.py \
33 --replace test_jenkins_open_no_timeout dont_test_jenkins_open_no_timeout
36 pythonRelaxDeps = [ "setuptools" ];
38 buildInputs = [ mock ];
39 propagatedBuildInputs = [
48 __darwinAllowLocalNetworking = true;
57 # Skip tests that fail due to setuptools>=66.0.0 rejecting PEP 440
58 # non-conforming versions. See
59 # https://github.com/pypa/setuptools/issues/2497 for details.
60 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)"
64 description = "Python bindings for the remote Jenkins API";
65 homepage = "https://pypi.python.org/pypi/python-jenkins";
66 license = licenses.bsd3;
67 maintainers = with maintainers; [ gador ];