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.isDarwin ''
32 substituteInPlace tests/test_jenkins_sockets.py \
33 --replace test_jenkins_open_no_timeout dont_test_jenkins_open_no_timeout
43 buildInputs = [ mock ];
44 propagatedBuildInputs = [ pbr pyyaml setuptools six multi-key-dict requests ];
46 __darwinAllowLocalNetworking = true;
48 nativeCheckInputs = [ stestr testscenarios requests-mock multiprocess ];
50 # Skip tests that fail due to setuptools>=66.0.0 rejecting PEP 440
51 # non-conforming versions. See
52 # https://github.com/pypa/setuptools/issues/2497 for details.
53 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)"
57 description = "Python bindings for the remote Jenkins API";
58 homepage = "https://pypi.python.org/pypi/python-jenkins";
59 license = licenses.bsd3;
60 maintainers = with maintainers; [ gador ];