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