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