Skip to content

Commit ce54b9b

Browse files
authored
zabbix-cli: 2.3.2 -> 3.1.2 (#346725)
2 parents c6dbaa0 + ae7e753 commit ce54b9b

File tree

3 files changed

+74
-41
lines changed

3 files changed

+74
-41
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
python3Packages,
5+
testers,
6+
zabbix-cli,
7+
}:
8+
9+
python3Packages.buildPythonApplication rec {
10+
pname = "zabbix-cli";
11+
version = "3.1.2";
12+
pyproject = true;
13+
14+
src = fetchFromGitHub {
15+
owner = "usit-gd";
16+
repo = "zabbix-cli";
17+
rev = "refs/tags/${version}";
18+
hash = "sha256-It0SVbGNIxf2i4gleqVRAZCIks/Tf/WYSAgipOC+HwE=";
19+
};
20+
21+
pythonRelaxDeps = [ "click-repl" ];
22+
23+
build-system = with python3Packages; [
24+
hatchling
25+
];
26+
27+
dependencies =
28+
with python3Packages;
29+
[
30+
click-repl
31+
httpx
32+
httpx.optional-dependencies.socks
33+
packaging
34+
platformdirs
35+
pydantic
36+
requests
37+
rich
38+
strenum
39+
tomli
40+
tomli-w
41+
typer
42+
typing-extensions
43+
]
44+
++ lib.optionals (pythonOlder "3.10") [
45+
importlib-metadata
46+
];
47+
48+
nativeCheckInputs = with python3Packages; [
49+
freezegun
50+
inline-snapshot
51+
pytestCheckHook
52+
];
53+
54+
# Otherwise tests will fail to create directory
55+
# Permission denied: '/homeless-shelter'
56+
preCheck = ''
57+
export HOME=$(mktemp -d)
58+
'';
59+
60+
pythonImportsCheck = [ "zabbix_cli" ];
61+
62+
passthru.tests.version = testers.testVersion {
63+
package = zabbix-cli;
64+
command = "HOME=$(mktemp -d) zabbix-cli --version";
65+
};
66+
67+
meta = with lib; {
68+
description = "Command-line interface for Zabbix";
69+
homepage = "https://github.com/unioslo/zabbix-cli";
70+
license = licenses.gpl3Plus;
71+
mainProgram = "zabbix-cli";
72+
maintainers = [ maintainers.anthonyroussel ];
73+
};
74+
}

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

Lines changed: 0 additions & 39 deletions
This file was deleted.

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7252,8 +7252,6 @@ with pkgs;
72527252

72537253
z-lua = callPackage ../tools/misc/z-lua { };
72547254

7255-
zabbix-cli = callPackage ../tools/misc/zabbix-cli { };
7256-
72577255
zabbixctl = callPackage ../tools/misc/zabbixctl { };
72587256

72597257
zee = callPackage ../applications/editors/zee {

0 commit comments

Comments
 (0)