2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-gvm
|
2022-01-19 23:45:15 +00:00
|
|
|
, pythonAtLeast
|
2021-09-18 10:52:07 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gvm-tools";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "24.1.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "gvm-tools";
|
2023-02-09 11:40:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-4uYOhsnprYybt5EB/b4LW8/9cn0Nahc1lYQ+DwPNlOU=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-gvm
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Don't test sending
|
|
|
|
"SendTargetTestCase"
|
2022-01-19 23:45:15 +00:00
|
|
|
] ++ lib.optionals (pythonAtLeast "3.10") [
|
|
|
|
"HelpFormattingParserTestCase"
|
2021-10-14 00:43:12 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"gvmtools"
|
|
|
|
];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
|
|
|
|
homepage = "https://github.com/greenbone/gvm-tools";
|
2023-03-24 00:07:29 +00:00
|
|
|
changelog = "https://github.com/greenbone/gvm-tools/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|