1{ lib 2, stdenv 3, buildPythonPackage 4, defusedxml 5, fetchFromGitHub 6, lxml 7, paramiko 8, poetry-core 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "python-gvm"; 15 version = "22.9.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "greenbone"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 sha256 = "sha256-V9xfPYwDDoCGJPstzYsC/ikUp45uiaZE0Bg4i9tRNhU="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 defusedxml 33 lxml 34 paramiko 35 ]; 36 37 checkInputs = [ 38 pytestCheckHook 39 ]; 40 41 disabledTests = [ 42 # No running SSH available 43 "test_connect_error" 44 ] ++ lib.optionals stdenv.isDarwin [ 45 "test_feed_xml_error" 46 ]; 47 48 pythonImportsCheck = [ 49 "gvm" 50 ]; 51 52 meta = with lib; { 53 description = "Collection of APIs that help with remote controlling a Greenbone Security Manager"; 54 homepage = "https://github.com/greenbone/python-gvm"; 55 license = with licenses; [ gpl3Plus ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}