1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 paho-mqtt, 6 poetry-core, 7 psutil, 8 pytestCheckHook, 9 python-gnupg, 10 pythonOlder, 11 sentry-sdk, 12 tomli, 13}: 14 15buildPythonPackage rec { 16 pname = "notus-scanner"; 17 version = "22.7.2"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.9"; 21 22 src = fetchFromGitHub { 23 owner = "greenbone"; 24 repo = "notus-scanner"; 25 tag = "v${version}"; 26 hash = "sha256-JKDnqgEBzEIOI3WIh+SOycACFaYZoZHy7tPFirltDiM="; 27 }; 28 29 pythonRelaxDeps = [ 30 "packaging" 31 "psutil" 32 "python-gnupg" 33 ]; 34 35 build-system = [ poetry-core ]; 36 37 propagatedBuildInputs = [ 38 paho-mqtt 39 psutil 40 python-gnupg 41 sentry-sdk 42 ] 43 ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 44 45 nativeCheckInputs = [ pytestCheckHook ]; 46 47 pythonImportsCheck = [ "notus.scanner" ]; 48 49 meta = with lib; { 50 description = "Helper to create results from local security checks"; 51 homepage = "https://github.com/greenbone/notus-scanner"; 52 changelog = "https://github.com/greenbone/notus-scanner/releases/tag/${src.tag}"; 53 license = with licenses; [ agpl3Plus ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}