567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
63 lines
1.1 KiB
Nix
63 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
mock,
|
|
pbr,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pytz,
|
|
requests,
|
|
setuptools,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jenkinsapi";
|
|
version = "0.3.15";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pycontribs";
|
|
repo = "jenkinsapi";
|
|
tag = version;
|
|
hash = "sha256-r6GOi/0ALJDy6R6cd/bECk+HVe/AyKZYG96sr9y9o/4=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Python API for accessing resources on a Jenkins continuous-integration server";
|
|
homepage = "https://github.com/salimfadhley/jenkinsapi";
|
|
maintainers = with lib.maintainers; [ drets ];
|
|
teams = [ lib.teams.deshaw ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|