2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
schema,
|
|
|
|
setuptools,
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "policy-sentry";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.12.12";
|
|
|
|
pyproject = true;
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "salesforce";
|
|
|
|
repo = "policy_sentry";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-1LYcUlGoSalbdo4tiNIYbdA04IHRTImhdWScpiCZk50=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-08-22 07:53:02 +00:00
|
|
|
beautifulsoup4
|
|
|
|
click
|
|
|
|
requests
|
|
|
|
pyyaml
|
|
|
|
schema
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonImportsCheck = [ "policy_sentry" ];
|
2021-08-22 07:53:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for generating IAM least privilege policies";
|
|
|
|
homepage = "https://github.com/salesforce/policy_sentry";
|
2023-02-09 11:40:11 +00:00
|
|
|
changelog = "https://github.com/salesforce/policy_sentry/releases/tag/${version}";
|
2021-08-22 07:53:02 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "policy_sentry";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
}
|