depot/third_party/nixpkgs/pkgs/tools/security/ospd-openvas/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
1.2 KiB
Nix

{
lib,
fetchFromGitHub,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "ospd-openvas";
version = "22.7.1";
pyproject = true;
src = fetchFromGitHub {
owner = "greenbone";
repo = "ospd-openvas";
rev = "refs/tags/v${version}";
hash = "sha256-bFZTwNITDG5OpoWD7F1Ad6BQFpY4Q5CGUGbYy7rTuc0=";
};
pythonRelaxDeps = [
"packaging"
"python-gnupg"
];
build-system = with python3.pkgs; [ poetry-core ];
nativeBuildInputs = with python3.pkgs; [ 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/releases/tag/v${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}