Merge pull request #134893 from fabaff/cloudsplaining

This commit is contained in:
Sandro 2021-08-21 12:12:28 +02:00 committed by GitHub
commit 108abf5c8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,55 @@
{ lib
, boto3
, botocore
, buildPythonPackage
, cached-property
, click
, click-option-group
, fetchFromGitHub
, jinja2
, markdown
, policy-sentry
, pytestCheckHook
, pythonOlder
, pyyaml
, schema
}:
buildPythonPackage rec {
pname = "cloudsplaining";
version = "0.4.5";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = pname;
rev = version;
sha256 = "0s446jji3c9x1gw0lsb03giir91cnv6dgh4nzxg9mc1rm9wy7gzw";
};
propagatedBuildInputs = [
boto3
botocore
cached-property
click
click-option-group
jinja2
markdown
policy-sentry
pyyaml
schema
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "cloudsplaining" ];
meta = with lib; {
description = "Python module for AWS IAM security assessment";
homepage = "https://github.com/salesforce/cloudsplaining";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -0,0 +1,45 @@
{ lib
, beautifulsoup4
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, schema
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.11.16";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
rev = version;
sha256 = "0m3sr1mhnmm22xgd3h9dgkrq20pdghwx505xld4pahj686z4bva2";
};
propagatedBuildInputs = [
beautifulsoup4
click
requests
pyyaml
schema
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "policy_sentry" ];
meta = with lib; {
description = "Python module for generating IAM least privilege policies";
homepage = "https://github.com/salesforce/policy_sentry";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -1539,6 +1539,8 @@ in {
cloudsmith-api = callPackage ../development/python-modules/cloudsmith-api { };
cloudsplaining = callPackage ../development/python-modules/cloudsplaining { };
clustershell = callPackage ../development/python-modules/clustershell { };
clvm = callPackage ../development/python-modules/clvm { };
@ -5544,6 +5546,8 @@ in {
polib = callPackage ../development/python-modules/polib { };
policy-sentry = callPackage ../development/python-modules/policy-sentry { };
policyuniverse = callPackage ../development/python-modules/policyuniverse { };
polyline = callPackage ../development/python-modules/polyline { };