git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #154622 from fabaff/faraday-agent-dispatcher

faraday-agent-dispatcher: init at 2.1.3

commita3566ed7e6452b0e9b1190d4bc4d039b5e7c5370 authorFabian Affolter <fabian@affolter-engineering.ch> dateWed 12 Jan 2022, 09:07 (5 years ago) parentbcaaf38ceafd6f
2 files changed+71
pkgs/tools/security/faraday-agent-dispatcher/default.nix+69 pkgs/top-level/all-packages.nix+2
pkgs/tools/security/faraday-agent-dispatcher/default.nixnew file+69
@@ -0,0 +1,69 @@
1+{ lib
2+, fetchFromGitHub
3+, python3
4+}:
5+
6+python3.pkgs.buildPythonApplication rec {
7+ pname = "faraday-agent-dispatcher";
8+ version = "2.1.3";
9+ format = "setuptools";
10+
11+ src = fetchFromGitHub {
12+ owner = "infobyte";
13+ repo = "faraday_agent_dispatcher";
14+ rev = version;
15+ hash = "sha256-lqCW1/wRXfN7C9c6TPvninueOgrhzNdjRJ9fuueMyH0=";
16+ };
17+
18+ nativeBuildInputs = with python3.pkgs; [
19+ setuptools-scm
20+ ];
21+
22+ propagatedBuildInputs = with python3.pkgs; [
23+ aiohttp
24+ click
25+ faraday-agent-parameters-types
26+ faraday-plugins
27+ itsdangerous
28+ python-gvm
29+ python-owasp-zap-v2-4
30+ pyyaml
31+ requests
32+ syslog-rfc5424-formatter
33+ websockets
34+ ];
35+
36+ checkInputs = with python3.pkgs; [
37+ pytest-asyncio
38+ pytestCheckHook
39+ ];
40+
41+ postPatch = ''
42+ substituteInPlace setup.py \
43+ --replace '"pytest-runner",' ""
44+ '';
45+
46+ preCheck = ''
47+ export HOME=$(mktemp -d);
48+ '';
49+
50+ disabledTests = [
51+ "test_execute_agent"
52+ ];
53+
54+ disabledTestPaths = [
55+ # Tests require a running Docker instance
56+ "tests/plugins-docker/test_executors.py"
57+ ];
58+
59+ pythonImportsCheck = [
60+ "faraday_agent_dispatcher"
61+ ];
62+
63+ meta = with lib; {
64+ description = "Tool to send result from tools to the Faraday Platform";
65+ homepage = "https://github.com/infobyte/faraday_agent_dispatcher";
66+ license = with licenses; [ gpl3Only ];
67+ maintainers = with maintainers; [ fab ];
68+ };
69+}
pkgs/top-level/all-packages.nix+2
@@ -5337,6 +5337,8 @@ with pkgs;
53375337
53385338 fabric-installer = callPackage ../tools/games/minecraft/fabric-installer { };
53395339
5340+ faraday-agent-dispatcher = callPackage ../tools/security/faraday-agent-dispatcher { };
5341+
53405342 faraday-cli = callPackage ../tools/security/faraday-cli { };
53415343
53425344 fastlane = callPackage ../tools/admin/fastlane { };