Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / jenkinsapi / default.nix
blob0fb7c3327db45c1c37c8f3f950ba6f0996cb6bee
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , flit-core
5 , mock
6 , pbr
7 , pytest-mock
8 , pytestCheckHook
9 , pytz
10 , requests
11 , setuptools
12 , six
15 buildPythonPackage rec {
16   pname = "jenkinsapi";
17   version = "0.3.13";
18   format = "pyproject";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk=";
23   };
25   patches = [
26     ./pytest-warn-none.patch
27   ];
29   nativeBuildInputs = [
30     flit-core
31     pbr
32   ];
34   propagatedBuildInputs = [
35     pytz
36     requests
37     setuptools
38     six
39   ];
41   nativeCheckInputs = [
42     mock
43     pytest-mock
44     pytestCheckHook
45   ];
47   # don't run tests that try to spin up jenkins
48   disabledTests = [ "systests" ];
50   pythonImportsCheck = [
51     "jenkinsapi"
52     "jenkinsapi.utils"
53     "jenkinsapi.utils.jenkins_launcher"
54   ];
56   meta = with lib; {
57     description = "A Python API for accessing resources on a Jenkins continuous-integration server";
58     homepage = "https://github.com/salimfadhley/jenkinsapi";
59     maintainers = with maintainers; [ drets ] ++ teams.deshaw.members;
60     license = licenses.mit;
61   };