blob: ad451c076d0daae9de1a3bd4682515008460f1b1 (
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
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "faraday-agent-dispatcher";
version = "3.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "infobyte";
repo = "faraday_agent_dispatcher";
rev = "refs/tags/${version}";
hash = "sha256-Qr3ZGU4y7f6yHD78ecdv7a6IBFDpT+/4Yez0n/MenN0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"pytest-runner",' ""
'';
pythonRelaxDeps = [
"python-socketio"
];
build-system = with python3.pkgs; [
setuptools-scm
];
nativeBuildInputs = with python3.pkgs; [
pythonRelaxDepsHook
];
dependencies = with python3.pkgs; [
aiohttp
click
faraday-agent-parameters-types
faraday-plugins
itsdangerous
psutil
pytenable
python-gvm
python-owasp-zap-v2-4
python-socketio
pyyaml
requests
syslog-rfc5424-formatter
websockets
];
nativeCheckInputs = with python3.pkgs; [
pytest-asyncio
pytestCheckHook
];
preCheck = ''
export HOME=$(mktemp -d);
'';
disabledTests = [
"test_execute_agent"
"SSL"
];
disabledTestPaths = [
# Tests require a running Docker instance
"tests/plugins-docker/test_executors.py"
];
pythonImportsCheck = [
"faraday_agent_dispatcher"
];
meta = with lib; {
description = "Tool to send result from tools to the Faraday Platform";
homepage = "https://github.com/infobyte/faraday_agent_dispatcher";
changelog = "https://github.com/infobyte/faraday_agent_dispatcher/releases/tag/${version}";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fab ];
mainProgram = "faraday-dispatcher";
};
}
|