blob: 69721d9f3480894998edc7b07841c883f1f7394e (
plain)
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
52
|
{
lib,
beautifulsoup4,
buildPythonPackage,
click,
fetchFromGitHub,
hatchling,
orjson,
pytestCheckHook,
pyyaml,
requests,
schema,
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.15.1";
pyproject = true;
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
tag = version;
hash = "sha256-G7V3BqgJs9nyvhZ9xzNwP50yz+2SZfps/gsW6U8eisk=";
};
pythonRelaxDeps = [ "beautifulsoup4" ];
build-system = [ hatchling ];
dependencies = [
beautifulsoup4
click
orjson
pyyaml
requests
schema
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "policy_sentry" ];
meta = {
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/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "policy_sentry";
};
}
|