depot/third_party/nixpkgs/pkgs/development/python-modules/cloudsplaining/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

71 lines
1.4 KiB
Nix

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