depot/third_party/nixpkgs/pkgs/development/python-modules/python-gvm/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

61 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, lxml
, paramiko
, poetry-core
, pontos
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-gvm";
version = "23.10.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "greenbone";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-me7HO6BiW+0S1GDbKkbJiRrUQotEP1MPo/d0Xc84mIg=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
defusedxml
lxml
paramiko
pontos
];
nativeCheckInputs = [
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";
changelog = "https://github.com/greenbone/python-gvm/releases/tag/v${version}";
license = with licenses; [ gpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}