2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2023-08-22 20:05:09 +00:00
|
|
|
, flit-core
|
2020-09-25 04:45:31 +00:00
|
|
|
, mock
|
2023-08-22 20:05:09 +00:00
|
|
|
, pbr
|
2020-09-25 04:45:31 +00:00
|
|
|
, pytest-mock
|
2023-08-22 20:05:09 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytz
|
|
|
|
, requests
|
2023-08-22 20:05:09 +00:00
|
|
|
, six
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jenkinsapi";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.3.13";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mock
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# don't run tests that try to spin up jenkins
|
|
|
|
disabledTests = [ "systests" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "jenkinsapi" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A Python API for accessing resources on a Jenkins continuous-integration server";
|
|
|
|
homepage = "https://github.com/salimfadhley/jenkinsapi";
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ drets ] ++ teams.deshaw.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|