depot/third_party/nixpkgs/pkgs/development/python-modules/python-gvm/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

59 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, defusedxml
, fetchFromGitHub
, lxml
, paramiko
, poetry-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-gvm";
version = "23.4.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "greenbone";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ONCPC05NYyymTKiJZaDTdcShLLy4+K+JwROVVXBkz+o=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
defusedxml
lxml
paramiko
];
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 ];
};
}