depot/third_party/nixpkgs/pkgs/tools/security/ospd-openvas/default.nix
Default email dae973cb59 Project import generated by Copybara.
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
2023-03-08 18:32:21 +02:00

55 lines
1.1 KiB
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "ospd-openvas";
version = "22.4.6";
format = "pyproject";
src = fetchFromGitHub {
owner = "greenbone";
repo = "ospd-openvas";
rev = "refs/tags/v${version}";
hash = "sha256-tgLOO4L/P6USiPf72uZse36r8HhXJnUUT8PfZH4E/jg=";
};
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";
changelog = "https://github.com/greenbone/ospd-openvas/blob/${version}/CHANGELOG.md";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
};
}