nixpkgs/pkgs/tools/misc/zabbix-cli/default.nix

39 lines
763 B
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, python3
}:
2017-05-26 13:08:32 +00:00
python3.pkgs.buildPythonApplication rec {
pname = "zabbix-cli";
2022-07-08 11:54:10 +00:00
version = "2.3.0";
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
};
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";
homepage = "https://github.com/unioslo/zabbix-cli";
license = licenses.gpl3Plus;
maintainers = [ ];
2017-05-26 13:08:32 +00:00
};
}