Files
nixpkgs/pkgs/development/python-modules/gvm-tools/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

46 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytestCheckHook,
python-gvm,
}:
buildPythonPackage rec {
pname = "gvm-tools";
version = "25.4.3";
pyproject = true;
src = fetchFromGitHub {
owner = "greenbone";
repo = "gvm-tools";
tag = "v${version}";
hash = "sha256-EyDD/ejqdToukdU5QJuouQCbrF84XSld4Ae7IWp4GVE=";
};
__darwinAllowLocalNetworking = true;
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ python-gvm ];
nativeCheckInputs = [ 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/${src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fab ];
};
}