2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3,
|
|
|
|
fetchFromGitHub,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "cloud-custodian";
|
2024-07-01 15:47:52 +00:00
|
|
|
version = "0.9.38.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cloud-custodian";
|
|
|
|
repo = "cloud-custodian";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-01 15:47:52 +00:00
|
|
|
hash = "sha256-jGWPwHiETS4+hk9euLLxs0PBb7mxz2PHCbYYlFfLQUw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"docutils"
|
|
|
|
"importlib-metadata"
|
|
|
|
"referencing"
|
|
|
|
"urllib3"
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
|
|
|
|
|
|
|
|
dependencies = with python3.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
argcomplete
|
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
certifi
|
2024-04-21 15:54:59 +00:00
|
|
|
docutils
|
|
|
|
importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
jsonpatch
|
|
|
|
jsonschema
|
2024-04-21 15:54:59 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/cloud-custodian/cloud-custodian/releases/tag/${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ bhipple ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "custodian";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|