nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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.17";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "pycontribs";
23 repo = "jenkinsapi";
24 tag = version;
25 hash = "sha256-1dTcT84cDpP9V4tVrgW2MTYx4jQj0/tZiAuakC+orUQ=";
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 = {
56 description = "Python API for accessing resources on a Jenkins continuous-integration server";
57 homepage = "https://github.com/salimfadhley/jenkinsapi";
58 maintainers = with lib.maintainers; [
59 de11n
60 despsyched
61 drets
62 ];
63 license = lib.licenses.mit;
64 };
65}