1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 iamdata,
6 poetry-core,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "py-iam-expand";
12 version = "0.2.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "prowler-cloud";
17 repo = "py-iam-expand";
18 tag = version;
19 hash = "sha256-P6PWf7qkc/8/BeRycYgvFApIaUrbhKq4h718Nrs817U=";
20 };
21
22 build-system = [ poetry-core ];
23
24 dependencies = [ iamdata ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "py_iam_expand" ];
29
30 meta = {
31 description = "Module to expand and deobfuscate AWS IAM actions";
32 homepage = "https://github.com/prowler-cloud/py-iam-expand";
33 changelog = "https://github.com/prowler-cloud/py-iam-expand/releases/tag/${src.tag}";
34 license = lib.licenses.asl20;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}