Fabian Affolter 2024-04-14 11:48:08 +02:00
parent be14b2e8fc
commit ff33aae7db
2 changed files with 30 additions and 21 deletions

View File

@ -1,34 +1,42 @@
{ lib, buildPythonApplication, fetchPypi
, argcomplete
, boto3
, botocore
, certifi
, python-dateutil
, jsonpatch
, jsonschema
, pyyaml
, tabulate
, urllib3
{
lib,
python3,
fetchFromGitHub,
}:
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "cloud-custodian";
version = "0.8.45.1";
version = "0.9.35.0";
pyproject = true;
src = fetchPypi {
pname = "c7n";
inherit version;
sha256 = "0c199gdmpm83xfghrbzp02xliyxiygsnx2fvb35j9qpf37wzzp3z";
src = fetchFromGitHub {
owner = "cloud-custodian";
repo = "cloud-custodian";
rev = "refs/tags/${version}";
hash = "sha256-iiyYtAtAQKTGrXdIPXGs11QWuPWn+IWmXpjmYO5S6Pg=";
};
propagatedBuildInputs = [
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
python-dateutil
docutils
importlib-metadata
jsonpatch
jsonschema
python-dateutil
pyyaml
tabulate
urllib3
@ -41,9 +49,10 @@ buildPythonApplication rec {
meta = with lib; {
description = "Rules engine for cloud security, cost optimization, and governance";
mainProgram = "custodian";
homepage = "https://cloudcustodian.io";
changelog = "https://github.com/cloud-custodian/cloud-custodian/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ bhipple ];
mainProgram = "custodian";
};
}

View File

@ -3637,7 +3637,7 @@ with pkgs;
claws = callPackage ../tools/misc/claws { };
cloud-custodian = python3Packages.callPackage ../tools/networking/cloud-custodian { };
cloud-custodian = callPackage ../tools/networking/cloud-custodian { };
coconut = with python3Packages; toPythonApplication coconut;