46 lines
1.0 KiB
Nix
46 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
python-gvm,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gvm-tools";
|
|
version = "25.4.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = "gvm-tools";
|
|
tag = "v${version}";
|
|
hash = "sha256-htBkQf9rxPXDtcr5w1ECshEKyPxPr6YaS4PtMvK2VQg=";
|
|
};
|
|
|
|
__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 ];
|
|
};
|
|
}
|