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 = "25.4.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "greenbone";
21 repo = "gvm-tools";
22 tag = "v${version}";
23 hash = "sha256-d5/oVQxhZGxGXwdGMojGQ4SiMUiQfxgcR2oF5Lq1+RM=";
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 ]
38 ++ lib.optionals (pythonAtLeast "3.10") [ "HelpFormattingParserTestCase" ];
39
40 pythonImportsCheck = [ "gvmtools" ];
41
42 meta = with lib; {
43 description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
44 homepage = "https://github.com/greenbone/gvm-tools";
45 changelog = "https://github.com/greenbone/gvm-tools/releases/tag/${src.tag}";
46 license = with licenses; [ gpl3Plus ];
47 maintainers = with maintainers; [ fab ];
48 };
49}