02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
58 lines
1 KiB
Nix
58 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, defusedxml
|
|
, fetchFromGitHub
|
|
, lxml
|
|
, paramiko
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-gvm";
|
|
version = "22.7.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "greenbone";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-0dshBFcZ0DLa6SXxzWyfzmgPPxTIiKq00OKCJfk0vKY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
defusedxml
|
|
lxml
|
|
paramiko
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# No running SSH available
|
|
"test_connect_error"
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
"test_feed_xml_error"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"gvm"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
|
|
homepage = "https://github.com/greenbone/python-gvm";
|
|
license = with licenses; [ gpl3Plus ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|