blob: 46143afdb5e3885a0e84d5fb179c0de1e989d34f (
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
|
{
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.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "RhinoSecurityLabs";
repo = "pacu";
rev = "refs/tags/v${version}";
hash = "sha256-Td5H4O6/7Gh/rvP191xjCJmIbyc4ezZC5Fh4FZ39ZUM=";
};
pythonRelaxDeps = [
"dsnap"
"sqlalchemy-utils"
"sqlalchemy"
"pycognito"
"urllib3"
];
build-system = with python.pkgs; [ poetry-core ];
nativeBuildInputs = with python.pkgs; [ pythonRelaxDepsHook ];
dependencies =
[ 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 = [
# sAttributeError: module 'moto' has no attribute 'mock_s3'
"test_update"
"test_update_second_time"
];
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";
};
}
|