depot/third_party/nixpkgs/pkgs/development/python-modules/policy-sentry/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

50 lines
983 B
Nix

{ lib
, beautifulsoup4
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, schema
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.12.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
rev = "refs/tags/${version}";
hash = "sha256-I56xWBbE1TqP+I8Op5X4TqHNB+gRlEPi7YQldIsjv4Q=";
};
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 ];
};
}