bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
paramiko,
|
|
poetry-core,
|
|
pontos,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-gvm";
|
|
version = "24.6.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = "python-gvm";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4Wa8O6kt4FsQk6VvE1dCdl9hQReO3YCf/4hTGcGaQxE=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
defusedxml
|
|
lxml
|
|
paramiko
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pontos
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# No running SSH available
|
|
"test_connect_error"
|
|
"test_feed_xml_error"
|
|
] ++ lib.optionals stdenv.isDarwin [ "test_feed_xml_error" ];
|
|
|
|
pythonImportsCheck = [ "gvm" ];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
|
|
homepage = "https://github.com/greenbone/python-gvm";
|
|
changelog = "https://github.com/greenbone/python-gvm/releases/tag/v${version}";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|