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.5";
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "salesforce";
20 repo = "policy_sentry";
21 rev = "refs/tags/${version}";
22 sha256 = "sha256-DwWX8ztqnm/KYkiarG9KXkHcVxYE6Cc285oOMz9gkqc=";
23 };
24
25 propagatedBuildInputs = [
26 beautifulsoup4
27 click
28 requests
29 pyyaml
30 schema
31 ];
32
33 checkInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "policy_sentry" ];
38
39 meta = with lib; {
40 description = "Python module for generating IAM least privilege policies";
41 homepage = "https://github.com/salesforce/policy_sentry";
42 license = licenses.bsd3;
43 maintainers = with maintainers; [ fab ];
44 };
45}