depot/third_party/nixpkgs/pkgs/development/python-modules/policy-sentry/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

45 lines
860 B
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, schema
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.12.4";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
rev = "refs/tags/${version}";
sha256 = "sha256-eAydoWalAuhiZs06vU/D1JndxKBZZBsWqEFFbAvvfzA=";
};
propagatedBuildInputs = [
beautifulsoup4
click
requests
pyyaml
schema
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "policy_sentry" ];
meta = with lib; {
description = "Python module for generating IAM least privilege policies";
homepage = "https://github.com/salesforce/policy_sentry";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}