Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = "23.5.0"; 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 hash = "sha256-84MTr9aTMB5MUj84bqbSGfX8JLA1KQ8pRE8Nr2RmoJw="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 defusedxml 33 lxml 34 paramiko 35 ]; 36 37 nativeCheckInputs = [ 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 changelog = "https://github.com/greenbone/python-gvm/releases/tag/v${version}"; 56 license = with licenses; [ gpl3Plus ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}