14 buildPythonPackage rec {
17 format = "setuptools";
19 disabled = pythonAtLeast "3.6";
22 inherit pname version;
23 sha256 = "a212a244b0a6022a61657746c8120ac9b6db83432371b345154075eb8faceb61";
26 propagatedBuildInputs = [ pytz requests ];
27 checkInputs = [ mock pytest pytest-mock requests-kerberos toml ];
28 # TODO requests-kerberos is broken on darwin, weeding out the broken tests without
29 # access to macOS is not an adventure I am ready to embark on - @rski
30 doCheck = !stdenv.isDarwin;
31 # don't run tests that try to spin up jenkins, and a few more that are mysteriously broken
33 py.test jenkinsapi_tests \
34 -k "not systests and not test_plugins and not test_view"
38 description = "A Python API for accessing resources on a Jenkins continuous-integration server";
39 homepage = "https://github.com/salimfadhley/jenkinsapi";
40 maintainers = with maintainers; [ drets ];
41 license = licenses.mit;