depot/third_party/nixpkgs/pkgs/development/python-modules/jenkinsapi/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

61 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
flit-core,
mock,
pbr,
pytest-mock,
pytestCheckHook,
pytz,
requests,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "jenkinsapi";
version = "0.3.13";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk=";
};
patches = [ ./pytest-warn-none.patch ];
nativeBuildInputs = [
flit-core
pbr
];
propagatedBuildInputs = [
pytz
requests
setuptools
six
];
nativeCheckInputs = [
mock
pytest-mock
pytestCheckHook
];
# don't run tests that try to spin up jenkins
disabledTests = [ "systests" ];
pythonImportsCheck = [
"jenkinsapi"
"jenkinsapi.utils"
"jenkinsapi.utils.jenkins_launcher"
];
meta = with lib; {
description = "Python API for accessing resources on a Jenkins continuous-integration server";
homepage = "https://github.com/salimfadhley/jenkinsapi";
maintainers = with maintainers; [ drets ] ++ teams.deshaw.members;
license = licenses.mit;
};
}