Files
nixpkgs/pkgs/development/python-modules/policy-sentry/default.nix
Fabian Affolter f85f52f9f4 python313Packages.policy-sentry: modernize
Removed the restriction for Python version older than 3.8.
2025-10-17 19:52:13 +02:00

51 lines
1010 B
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
click,
fetchFromGitHub,
orjson,
pytestCheckHook,
pyyaml,
requests,
schema,
setuptools,
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.14.1";
pyproject = true;
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
tag = version;
hash = "sha256-o4l4jkh9ZNqc3Jovd10KUQLDBLn0sPWdgScq5Q2qd14=";
};
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/${src.tag}";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
mainProgram = "policy_sentry";
};
}