Files
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

63 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 = "26.6.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "greenbone";
repo = "python-gvm";
tag = "v${version}";
hash = "sha256-n/FYPCJ0Fw2WBLA6dAYUzgwDlol1DRgbCywsvMARTWE=";
};
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/${src.tag}";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}