lol
at 24.11-pre 52 lines 1.2 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3, 5}: 6 7python3.pkgs.buildPythonApplication rec { 8 pname = "ospd-openvas"; 9 version = "22.7.1"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "greenbone"; 14 repo = "ospd-openvas"; 15 rev = "refs/tags/v${version}"; 16 hash = "sha256-bFZTwNITDG5OpoWD7F1Ad6BQFpY4Q5CGUGbYy7rTuc0="; 17 }; 18 19 pythonRelaxDeps = [ 20 "packaging" 21 "python-gnupg" 22 ]; 23 24 build-system = with python3.pkgs; [ poetry-core ]; 25 26 nativeBuildInputs = with python3.pkgs; [ pythonRelaxDepsHook ]; 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; [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "ospd_openvas" ]; 43 44 meta = with lib; { 45 description = "OSP server implementation to allow GVM to remotely control an OpenVAS Scanner"; 46 homepage = "https://github.com/greenbone/ospd-openvas"; 47 changelog = "https://github.com/greenbone/ospd-openvas/releases/tag/v${version}"; 48 license = licenses.agpl3Only; 49 maintainers = with maintainers; [ fab ]; 50 platforms = platforms.linux; 51 }; 52}