2022-01-02 01:47:43 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3
|
|
|
|
}:
|
2017-05-26 13:08:32 +00:00
|
|
|
|
2022-01-02 01:47:43 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zabbix-cli";
|
2022-07-08 11:54:10 +00:00
|
|
|
version = "2.3.0";
|
2022-01-02 01:47:43 +00:00
|
|
|
format = "setuptools";
|
2017-05-26 13:08:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "usit-gd";
|
|
|
|
repo = "zabbix-cli";
|
|
|
|
rev = version;
|
2022-07-08 11:54:10 +00:00
|
|
|
sha256 = "sha256-t8iVsdoJEHXtq9KK0WUGUX65zekKv8yzNoe8XgeeHd0=";
|
2017-05-26 13:08:32 +00:00
|
|
|
};
|
|
|
|
|
2022-01-02 01:47:43 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# TypeError: option values must be strings
|
|
|
|
"test_descriptor_del"
|
|
|
|
"test_initialize"
|
|
|
|
];
|
|
|
|
|
2017-05-26 13:08:32 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Command-line interface for Zabbix";
|
2022-01-02 01:47:43 +00:00
|
|
|
homepage = "https://github.com/unioslo/zabbix-cli";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = [ ];
|
2017-05-26 13:08:32 +00:00
|
|
|
};
|
|
|
|
}
|