Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / python-gvm / default.nix
blobefe048a33d1fcef2252513c162c28ed1212c06ee
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , defusedxml
5 , fetchFromGitHub
6 , lxml
7 , paramiko
8 , poetry-core
9 , pontos
10 , pytestCheckHook
11 , pythonOlder
12 , typing-extensions
15 buildPythonPackage rec {
16   pname = "python-gvm";
17   version = "24.3.0";
18   pyproject = true;
20   disabled = pythonOlder "3.9";
22   src = fetchFromGitHub {
23     owner = "greenbone";
24     repo = "python-gvm";
25     rev = "refs/tags/v${version}";
26     hash = "sha256-GIEsP8+RJMIehsBbZWpIRXCdqxm042lPbYTHY7/fknM=";
27   };
29   build-system = [
30     poetry-core
31   ];
33   dependencies = [
34     defusedxml
35     lxml
36     paramiko
37     typing-extensions
38   ];
40   nativeCheckInputs = [
41     pontos
42     pytestCheckHook
43   ];
45   disabledTests = [
46     # No running SSH available
47     "test_connect_error"
48     "test_feed_xml_error"
49   ] ++ lib.optionals stdenv.isDarwin [
50     "test_feed_xml_error"
51   ];
53   pythonImportsCheck = [
54     "gvm"
55   ];
57   meta = with lib; {
58     description = "Collection of APIs that help with remote controlling a Greenbone Security Manager";
59     homepage = "https://github.com/greenbone/python-gvm";
60     changelog = "https://github.com/greenbone/python-gvm/releases/tag/v${version}";
61     license = with licenses; [ gpl3Plus ];
62     maintainers = with maintainers; [ fab ];
63   };