2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
flit-core,
|
|
|
|
mock,
|
|
|
|
pbr,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pytz,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
patches = [ ./pytest-warn-none.patch ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytz
|
|
|
|
requests
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools
|
2023-08-22 20:05:09 +00:00
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
mock
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
# don't run tests that try to spin up jenkins
|
|
|
|
disabledTests = [ "systests" ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"jenkinsapi"
|
|
|
|
"jenkinsapi.utils"
|
|
|
|
"jenkinsapi.utils.jenkins_launcher"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python API for accessing resources on a Jenkins continuous-integration server";
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|