depot/third_party/nixpkgs/pkgs/development/python-modules/policy-sentry/default.nix

51 lines
983 B
Nix
Raw Normal View History

{ lib
, beautifulsoup4
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, schema
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.12.6";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
rev = "refs/tags/${version}";
hash = "sha256-odtMbPHty3NUqz+4UAw+8dsK6AMZer41/BAX8cK5Rek=";
};
propagatedBuildInputs = [
beautifulsoup4
click
requests
pyyaml
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 ];
};
}