Files
nixpkgs/pkgs/development/python-modules/gvm-tools/default.nix
2026-11-19 12:36:57 +01:00

46 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
pytestCheckHook,
python-gvm,
}:
buildPythonPackage (finalAttrs: {
pname = "gvm-tools";
version = "26.1.2";
pyproject = true;
__darwinAllowLocalNetworking = true;
src = fetchFromGitHub {
owner = "greenbone";
repo = "gvm-tools";
tag = "v${finalAttrs.version}";
hash = "sha256-Pqhgfo0TaGZk9dz5yCQ3CP208rMKx/DxSIQdQ3I/Nvc=";
};
build-system = [ hatchling ];
propagatedBuildInputs = [ python-gvm ];
dependencies = [ pytestCheckHook ];
disabledTests = [
# Don't test sending
"SendTargetTestCase"
"HelpFormattingParserTestCase"
];
pythonImportsCheck = [ "gvmtools" ];
meta = {
description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
homepage = "https://github.com/greenbone/gvm-tools";
changelog = "https://github.com/greenbone/gvm-tools/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
})