blob: 09e909eaa142408793d48c56711c88a0b6e44d37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
beautifulsoup4,
buildPythonPackage,
click,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
pyyaml,
requests,
schema,
setuptools,
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.12.12";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
rev = "refs/tags/${version}";
hash = "sha256-1LYcUlGoSalbdo4tiNIYbdA04IHRTImhdWScpiCZk50=";
};
build-system = [ setuptools ];
dependencies = [
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 ];
mainProgram = "policy_sentry";
};
}
|