nixpkgs/pkgs/development/python-modules/python-gvm/default.nix

59 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
defusedxml,
fetchFromGitHub,
lxml,
paramiko,
poetry-core,
pontos,
pytestCheckHook,
typing-extensions,
}:
buildPythonPackage (finalAttrs: {
pname = "python-gvm";
version = "26.10.1";
pyproject = true;
src = fetchFromGitHub {
owner = "greenbone";
repo = "python-gvm";
tag = "v${finalAttrs.version}";
hash = "sha256-eGpu4OIhWB41eYOZjST2TNYpRTO8sdTQvRJIcEgSQTc=";
};
build-system = [ poetry-core ];
pythonRelaxDeps = [ "defusedxml" ];
dependencies = [
defusedxml
lxml
paramiko
typing-extensions
];
nativeCheckInputs = [
pontos
pytestCheckHook
];
disabledTests = [
# No running SSH available
"test_connect_error"
"test_feed_xml_error"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_feed_xml_error" ];
pythonImportsCheck = [ "gvm" ];
meta = {
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/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
})