2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "zabbix-cli";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.3.2";
|
2022-01-03 16:56:52 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usit-gd";
|
|
|
|
repo = "zabbix-cli";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-B5t/vxCmPdRR9YKOc2htI57Kmk1ZrpwPUln4JoUrK6g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2024-02-07 01:22:34 +00:00
|
|
|
packaging
|
2022-01-03 16:56:52 +00:00
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2022-01-03 16:56:52 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# TypeError: option values must be strings
|
|
|
|
"test_descriptor_del"
|
|
|
|
"test_initialize"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line interface for Zabbix";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://github.com/unioslo/zabbix-cli";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|