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.1"; 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-iTcGo33GRf+CihSRuK1GFXOpYL6TT8e3CRyK2/AA38U="; 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 ] ++ lib.optionals (pythonOlder "3.11") [ tomli ]; 43 44 nativeCheckInputs = [ pytestCheckHook ]; 45 46 pythonImportsCheck = [ "notus.scanner" ]; 47 48 meta = with lib; { 49 description = "Helper to create results from local security checks"; 50 homepage = "https://github.com/greenbone/notus-scanner"; 51 changelog = "https://github.com/greenbone/notus-scanner/releases/tag/${src.tag}"; 52 license = with licenses; [ agpl3Plus ]; 53 maintainers = with maintainers; [ fab ]; 54 }; 55}