46 lines
845 B
Nix
46 lines
845 B
Nix
{ lib
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requests
|
|
, schema
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "policy-sentry";
|
|
version = "0.12.2";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "salesforce";
|
|
repo = "policy_sentry";
|
|
rev = version;
|
|
sha256 = "sha256-6yG60vUsvLpIiZ3i1D3NZOL9bINaF5ydrDvewqpEmpA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|