2022-01-13 20:06:32 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "faraday-agent-dispatcher";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "3.3.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "infobyte";
|
|
|
|
repo = "faraday_agent_dispatcher";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-rpi8S6pmei8MaACnfmOKFK+nNpljoMglu2uk75zvs9I=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace '"pytest-runner",' ""
|
|
|
|
'';
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"python-socketio"
|
|
|
|
];
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2024-01-25 14:12:00 +00:00
|
|
|
pythonRelaxDepsHook
|
2022-01-13 20:06:32 +00:00
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
aiohttp
|
|
|
|
click
|
|
|
|
faraday-agent-parameters-types
|
|
|
|
faraday-plugins
|
|
|
|
itsdangerous
|
2022-11-27 09:42:12 +00:00
|
|
|
psutil
|
2023-08-22 20:05:09 +00:00
|
|
|
pytenable
|
2022-01-13 20:06:32 +00:00
|
|
|
python-gvm
|
|
|
|
python-owasp-zap-v2-4
|
2024-01-25 14:12:00 +00:00
|
|
|
python-socketio
|
2022-01-13 20:06:32 +00:00
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
syslog-rfc5424-formatter
|
|
|
|
websockets
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-01-13 20:06:32 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d);
|
|
|
|
'';
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_execute_agent"
|
2022-08-12 12:06:08 +00:00
|
|
|
"SSL"
|
2022-01-13 20:06:32 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "faraday-dispatcher";
|
2022-01-13 20:06:32 +00:00
|
|
|
homepage = "https://github.com/infobyte/faraday_agent_dispatcher";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/infobyte/faraday_agent_dispatcher/releases/tag/${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|