1{ lib 2, beautifulsoup4 3, buildPythonPackage 4, click 5, fetchFromGitHub 6, pytestCheckHook 7, pythonOlder 8, pyyaml 9, requests 10, schema 11}: 12 13buildPythonPackage rec { 14 pname = "policy-sentry"; 15 version = "0.12.10"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "salesforce"; 22 repo = "policy_sentry"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-Kha5fq5l1yXWjDZq9GFKk3gYRtrEyiCFjbEAdYGPSa8="; 25 }; 26 27 propagatedBuildInputs = [ 28 beautifulsoup4 29 click 30 requests 31 pyyaml 32 schema 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "policy_sentry" 41 ]; 42 43 meta = with lib; { 44 description = "Python module for generating IAM least privilege policies"; 45 homepage = "https://github.com/salesforce/policy_sentry"; 46 changelog = "https://github.com/salesforce/policy_sentry/releases/tag/${version}"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}