blob: 91122b15a79d6c7967ebff98e6ac00a4aca55d07 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
{ lib
, awscli
, fetchFromGitHub
, python3
}:
let
python = python3.override {
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy_1_4;
};
};
in python.pkgs.buildPythonApplication rec {
pname = "pacu";
version = "1.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "RhinoSecurityLabs";
repo = "pacu";
rev = "refs/tags/v${version}";
hash = "sha256-Ty++jNJTk8YKy6Sl6xj1Xs25ZxJCeF9m/iwdA2fRXnI=";
};
pythonRelaxDeps = [
"dsnap"
"sqlalchemy-utils"
"sqlalchemy"
"urllib3"
];
nativeBuildInputs = with python.pkgs; [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
awscli
] ++ (with python.pkgs; [
awscli
boto3
botocore
chalice
dsnap
jq
policyuniverse
pycognito
pyyaml
qrcode
requests
sqlalchemy
sqlalchemy-utils
toml
typing-extensions
urllib3
]);
nativeCheckInputs = with python.pkgs; [
moto
pytestCheckHook
];
postBuild = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [
"pacu"
];
disabledTests = [
# sqlalchemy.exc.ArgumentError: Textual SQL expression
#"test_migrations"
];
meta = with lib; {
description = "AWS exploitation framework";
homepage = "https://github.com/RhinoSecurityLabs/pacu";
changelog = "https://github.com/RhinoSecurityLabs/pacu/releases/tag/v${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
mainProgram = "pacu";
};
}
|