Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "cloud-custodian";
|
|
version = "0.9.38.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cloud-custodian";
|
|
repo = "cloud-custodian";
|
|
tag = version;
|
|
hash = "sha256-jGWPwHiETS4+hk9euLLxs0PBb7mxz2PHCbYYlFfLQUw=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"docutils"
|
|
"importlib-metadata"
|
|
"referencing"
|
|
"urllib3"
|
|
];
|
|
|
|
build-system = with python3.pkgs; [ poetry-core ];
|
|
|
|
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 = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ bhipple ];
|
|
mainProgram = "custodian";
|
|
};
|
|
}
|