depot/third_party/nixpkgs/pkgs/development/python-modules/gvm-tools/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

55 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, python-gvm
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
pname = "gvm-tools";
version = "23.9.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "greenbone";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-W49jmFwLrCu8NhQ65ll3iu+QbnHBA5sCeUgSLYLrui0=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
python-gvm
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Don't test sending
"SendTargetTestCase"
] ++ lib.optionals (pythonAtLeast "3.10") [
"HelpFormattingParserTestCase"
];
pythonImportsCheck = [
"gvmtools"
];
meta = with lib; {
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/v${version}";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}