2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "ospd-openvas";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "22.6.0";
|
2023-03-08 16:32:21 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
|
|
|
repo = "ospd-openvas";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-1538XMNnerhfV3xQ8/TyoztCfWnkRvy0p6QtKMQb2p4=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"packaging"
|
|
|
|
"python-gnupg"
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
defusedxml
|
|
|
|
deprecated
|
|
|
|
lxml
|
|
|
|
packaging
|
|
|
|
paho-mqtt
|
|
|
|
psutil
|
|
|
|
python-gnupg
|
|
|
|
redis
|
|
|
|
sentry-sdk
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ospd_openvas"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OSP server implementation to allow GVM to remotely control an OpenVAS Scanner";
|
|
|
|
homepage = "https://github.com/greenbone/ospd-openvas";
|
2023-08-10 07:59:29 +00:00
|
|
|
changelog = "https://github.com/greenbone/ospd-openvas/releases/tag/v${version}";
|
2023-03-08 16:32:21 +00:00
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|