Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud-custodian: init at 0.8.45.1 #72325

Merged
merged 1 commit into from Nov 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 48 additions & 0 deletions pkgs/tools/networking/cloud-custodian/default.nix
@@ -0,0 +1,48 @@
{ lib, buildPythonApplication, fetchPypi
, argcomplete
, boto3
, botocore
, certifi
, 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
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";
homepage = "https://cloudcustodian.io";
license = licenses.asl20;
maintainers = with maintainers; [ bhipple ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -807,6 +807,8 @@ in

claws = callPackage ../tools/misc/claws { };

cloud-custodian = python3Packages.callPackage ../tools/networking/cloud-custodian { };

codespell = with python3Packages; toPythonApplication codespell;

cozy = callPackage ../applications/audio/cozy-audiobooks { };
Expand Down