depot/third_party/nixpkgs/pkgs/development/python-modules/cloudsplaining/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

67 lines
1.2 KiB
Nix

{
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.6.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-7aOPerqayuJTHItlpnVVSzOlSGNnqHvtIi5BdovNh3A=";
};
propagatedBuildInputs = [
boto3
botocore
cached-property
click
click-option-group
jinja2
markdown
policy-sentry
pyyaml
schema
];
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
# Ignore pinned versions
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" requirements.txt
'';
disabledTests = [
"test_policy_expansion"
"test_statement_details_for_allow_not_action"
];
pythonImportsCheck = [ "cloudsplaining" ];
meta = with lib; {
description = "Python module for AWS IAM security assessment";
mainProgram = "cloudsplaining";
homepage = "https://github.com/salesforce/cloudsplaining";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}