2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
fetchFromGitHub,
|
2024-09-19 14:19:46 +00:00
|
|
|
orjson,
|
2024-04-21 15:54:59 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
schema,
|
|
|
|
setuptools,
|
2021-08-22 07:53:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "policy-sentry";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.13.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
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-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-OUe6NAz4w9/OXWQg4W+TmEI5qiSdEp+/tspQnIISTnc=";
|
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
|
2024-09-19 14:19:46 +00:00
|
|
|
orjson
|
2021-08-22 07:53:02 +00:00
|
|
|
pyyaml
|
2024-09-19 14:19:46 +00:00
|
|
|
requests
|
2021-08-22 07:53:02 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|