depot/third_party/nixpkgs/pkgs/development/python-modules/gvm-tools/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

54 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, python-gvm
, pythonAtLeast
, pythonOlder
}:
buildPythonPackage rec {
pname = "gvm-tools";
version = "23.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "greenbone";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-TwGeLEfP69ZK/fkhS0sB6aPh8aDjg6Tri2mUUzk4jbk=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
python-gvm
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Don't test sending
"SendTargetTestCase"
] ++ lib.optionals (pythonAtLeast "3.10") [
"HelpFormattingParserTestCase"
];
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 ];
};
}