2021-08-22 07:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
|
|
|
, requests
|
|
|
|
, schema
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "policy-sentry";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.12.8";
|
2023-02-09 11:40:11 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
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}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-I56xWBbE1TqP+I8Op5X4TqHNB+gRlEPi7YQldIsjv4Q=";
|
2021-08-22 07:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
click
|
|
|
|
requests
|
|
|
|
pyyaml
|
|
|
|
schema
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-22 07:53:02 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-02-09 11:40:11 +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 ];
|
|
|
|
};
|
|
|
|
}
|