depot/third_party/nixpkgs/pkgs/development/python-modules/jenkinsapi/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

53 lines
945 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, mock
, pbr
, pytest-mock
, pytestCheckHook
, pytz
, requests
, six
}:
buildPythonPackage rec {
pname = "jenkinsapi";
version = "0.3.13";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-JGqYpj5h9UoV0WEFyxVIjFZwc030HobHrw1dnAryQLk=";
};
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" ];
meta = with lib; {
description = "A 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;
};
}