1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytestCheckHook,
7 python-gvm,
8 pythonAtLeast,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "gvm-tools";
14 version = "24.6.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "greenbone";
21 repo = "gvm-tools";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-R8wpkzL2QxGdvc6vWtrbIGEiryc+QQ3OitdxMcpH+F4=";
24 };
25
26 __darwinAllowLocalNetworking = true;
27
28 nativeBuildInputs = [ poetry-core ];
29
30 propagatedBuildInputs = [ python-gvm ];
31
32 nativeCheckInputs = [ pytestCheckHook ];
33
34 disabledTests = [
35 # Don't test sending
36 "SendTargetTestCase"
37 ] ++ lib.optionals (pythonAtLeast "3.10") [ "HelpFormattingParserTestCase" ];
38
39 pythonImportsCheck = [ "gvmtools" ];
40
41 meta = with lib; {
42 description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
43 homepage = "https://github.com/greenbone/gvm-tools";
44 changelog = "https://github.com/greenbone/gvm-tools/releases/tag/v${version}";
45 license = with licenses; [ gpl3Plus ];
46 maintainers = with maintainers; [ fab ];
47 };
48}