1{ lib
2, buildPythonPackage
3, fetchPypi
4, flit-core
5, mock
6, pbr
7, pytest-mock
8, pytestCheckHook
9, pytz
10, requests
11, six
12}:
13
14buildPythonPackage rec {
15 pname = "jenkinsapi";
16 version = "0.3.13";
17 format = "pyproject";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk=";
22 };
23
24 nativeBuildInputs = [
25 flit-core
26 pbr
27 ];
28
29 propagatedBuildInputs = [
30 pytz
31 requests
32 six
33 ];
34
35 nativeCheckInputs = [
36 mock
37 pytest-mock
38 pytestCheckHook
39 ];
40
41 # don't run tests that try to spin up jenkins
42 disabledTests = [ "systests" ];
43
44 pythonImportsCheck = [ "jenkinsapi" ];
45
46 meta = with lib; {
47 description = "A Python API for accessing resources on a Jenkins continuous-integration server";
48 homepage = "https://github.com/salimfadhley/jenkinsapi";
49 maintainers = with maintainers; [ drets ] ++ teams.deshaw.members;
50 license = licenses.mit;
51 };
52
53}