2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
defusedxml,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lxml,
|
|
|
|
paramiko,
|
|
|
|
poetry-core,
|
|
|
|
pontos,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
typing-extensions,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-gvm";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "24.3.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "greenbone";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "python-gvm";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-GIEsP8+RJMIehsBbZWpIRXCdqxm042lPbYTHY7/fknM=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-09-18 10:52:07 +00:00
|
|
|
defusedxml
|
2021-10-14 00:43:12 +00:00
|
|
|
lxml
|
|
|
|
paramiko
|
2024-04-21 15:54:59 +00:00
|
|
|
typing-extensions
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-25 14:12:00 +00:00
|
|
|
pontos
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# No running SSH available
|
|
|
|
"test_connect_error"
|
2024-01-25 14:12:00 +00:00
|
|
|
"test_feed_xml_error"
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ "test_feed_xml_error" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gvm" ];
|
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/python-gvm";
|
2023-04-29 16:46:19 +00:00
|
|
|
changelog = "https://github.com/greenbone/python-gvm/releases/tag/v${version}";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|