ff33aae7db
Diff: https://github.com/cloud-custodian/cloud-custodian/compare/refs/tags/0.8.45.1...0.9.35.0 Changelog: https://github.com/cloud-custodian/cloud-custodian/releases/tag/0.9.35.0
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "cloud-custodian";
|
|
version = "0.9.35.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloud-custodian";
|
|
repo = "cloud-custodian";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-iiyYtAtAQKTGrXdIPXGs11QWuPWn+IWmXpjmYO5S6Pg=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"docutils"
|
|
"importlib-metadata"
|
|
"referencing"
|
|
"urllib3"
|
|
];
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
argcomplete
|
|
boto3
|
|
botocore
|
|
certifi
|
|
docutils
|
|
importlib-metadata
|
|
jsonpatch
|
|
jsonschema
|
|
python-dateutil
|
|
pyyaml
|
|
tabulate
|
|
urllib3
|
|
];
|
|
|
|
# Requires tox, many packages, and network access
|
|
checkPhase = ''
|
|
$out/bin/custodian --help
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Rules engine for cloud security, cost optimization, and governance";
|
|
homepage = "https://cloudcustodian.io";
|
|
changelog = "https://github.com/cloud-custodian/cloud-custodian/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ bhipple ];
|
|
mainProgram = "custodian";
|
|
};
|
|
}
|