nixpkgs-suyu/pkgs/tools/networking/cloud-custodian/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

49 lines
926 B
Nix

{ lib, buildPythonApplication, fetchPypi
, argcomplete
, boto3
, botocore
, certifi
, python-dateutil
, jsonpatch
, jsonschema
, pyyaml
, tabulate
, urllib3
}:
buildPythonApplication rec {
pname = "cloud-custodian";
version = "0.8.45.1";
src = fetchPypi {
pname = "c7n";
inherit version;
sha256 = "0c199gdmpm83xfghrbzp02xliyxiygsnx2fvb35j9qpf37wzzp3z";
};
propagatedBuildInputs = [
argcomplete
boto3
botocore
certifi
python-dateutil
jsonpatch
jsonschema
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";
mainProgram = "custodian";
homepage = "https://cloudcustodian.io";
license = licenses.asl20;
maintainers = with maintainers; [ bhipple ];
};
}