python3Packages.gvm-tools: init at 21.6.1
This commit is contained in:
parent
d51bf751c1
commit
47caf58b2c
54
pkgs/development/python-modules/gvm-tools/default.nix
Normal file
54
pkgs/development/python-modules/gvm-tools/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user