2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
boto3,
|
|
|
|
botocore,
|
|
|
|
buildPythonPackage,
|
|
|
|
cached-property,
|
|
|
|
click,
|
|
|
|
click-option-group,
|
|
|
|
fetchFromGitHub,
|
|
|
|
jinja2,
|
|
|
|
markdown,
|
|
|
|
policy-sentry,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
schema,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cloudsplaining";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.7.0";
|
2024-07-27 06:49:29 +00:00
|
|
|
pyproject = true;
|
2021-10-14 00:43:12 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "salesforce";
|
2024-07-27 06:49:29 +00:00
|
|
|
repo = "cloudsplaining";
|
2023-04-12 12:48:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-ZraWGOiJNqVSmxnllaTvpk9+rUQRFcxFIdp91gpAQW0=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Ignore pinned versions
|
|
|
|
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" requirements.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-08-22 07:53:02 +00:00
|
|
|
boto3
|
|
|
|
botocore
|
|
|
|
cached-property
|
|
|
|
click
|
|
|
|
click-option-group
|
|
|
|
jinja2
|
|
|
|
markdown
|
|
|
|
policy-sentry
|
|
|
|
pyyaml
|
|
|
|
schema
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_policy_expansion"
|
|
|
|
"test_statement_details_for_allow_not_action"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "cloudsplaining" ];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for AWS IAM security assessment";
|
|
|
|
homepage = "https://github.com/salesforce/cloudsplaining";
|
2024-07-27 06:49:29 +00:00
|
|
|
changelog = "https://github.com/salesforce/cloudsplaining/releases/tag/${version}";
|
2021-08-22 07:53:02 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-07-27 06:49:29 +00:00
|
|
|
mainProgram = "cloudsplaining";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
}
|