159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
53 lines
1 KiB
Nix
53 lines
1 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
click,
|
|
fetchFromGitHub,
|
|
orjson,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
pyyaml,
|
|
requests,
|
|
schema,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "policy-sentry";
|
|
version = "0.13.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "salesforce";
|
|
repo = "policy_sentry";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-OUe6NAz4w9/OXWQg4W+TmEI5qiSdEp+/tspQnIISTnc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
beautifulsoup4
|
|
click
|
|
orjson
|
|
pyyaml
|
|
requests
|
|
schema
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "policy_sentry" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for generating IAM least privilege policies";
|
|
homepage = "https://github.com/salesforce/policy_sentry";
|
|
changelog = "https://github.com/salesforce/policy_sentry/releases/tag/${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "policy_sentry";
|
|
};
|
|
}
|