1{ lib
2, fetchFromGitHub
3, python3
4}:
5
6python3.pkgs.buildPythonApplication rec {
7 pname = "ospd-openvas";
8 version = "22.5.1";
9 format = "pyproject";
10
11 src = fetchFromGitHub {
12 owner = "greenbone";
13 repo = "ospd-openvas";
14 rev = "refs/tags/v${version}";
15 hash = "sha256-7B/SLdOKxdFdW0ysuxgJm1xaTJuM0FPaloRn46rxY6A=";
16 };
17
18 pythonRelaxDeps = [
19 "packaging"
20 "python-gnupg"
21 ];
22
23 nativeBuildInputs = with python3.pkgs; [
24 poetry-core
25 pythonRelaxDepsHook
26 ];
27
28 propagatedBuildInputs = with python3.pkgs; [
29 defusedxml
30 deprecated
31 lxml
32 packaging
33 paho-mqtt
34 psutil
35 python-gnupg
36 redis
37 sentry-sdk
38 ];
39
40 nativeCheckInputs = with python3.pkgs; [
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [
45 "ospd_openvas"
46 ];
47
48 meta = with lib; {
49 description = "OSP server implementation to allow GVM to remotely control an OpenVAS Scanner";
50 homepage = "https://github.com/greenbone/ospd-openvas";
51 changelog = "https://github.com/greenbone/ospd-openvas/blob/${version}/CHANGELOG.md";
52 license = licenses.agpl3Only;
53 maintainers = with maintainers; [ fab ];
54 };
55}