python3Packages.gvm-tools: init at 21.6.1

This commit is contained in:
Fabian Affolter 2021-09-10 10:46:17 +02:00
parent d51bf751c1
commit 47caf58b2c
3 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1,54 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, poetry-core
, pytestCheckHook
, python-gvm
, pythonOlder
}:
buildPythonPackage rec {
pname = "gvm-tools";
version = "21.6.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "greenbone";
repo = pname;
rev = "v${version}";
sha256 = "1n9alryf52xkwxwagmq8bdn3a8scnmgh3qfdjwj6jybcyk36rv6n";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
python-gvm
];
checkInputs = [
pytestCheckHook
];
patches = [
# Switch to poetry-core, https://github.com/greenbone/gvm-tools/pull/520
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/greenbone/gvm-tools/commit/db65495181ca339610b1007a33cc13285a470242.patch";
sha256 = "069rg742pxjd36vap0xp6367rd69pji4yfxbycc7z0b8gvf80w5z";
})
];
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";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -5785,6 +5785,8 @@ with pkgs;
gupnp-tools = callPackage ../tools/networking/gupnp-tools {};
gvm-tools = with python3.pkgs; toPythonApplication gvm-tools;
gvpe = callPackage ../tools/networking/gvpe {
openssl = openssl_1_0_2;
};

View File

@ -3241,6 +3241,8 @@ in {
guzzle_sphinx_theme = callPackage ../development/python-modules/guzzle_sphinx_theme { };
gvm-tools = callPackage ../development/python-modules/gvm-tools {};
gviz-api = callPackage ../development/python-modules/gviz-api {};
gym = callPackage ../development/python-modules/gym { };