1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "py-zabbix";
10 version = "1.1.7";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.8";
14
15 src = fetchFromGitHub {
16 owner = "adubkov";
17 repo = "py-zabbix";
18 rev = version;
19 sha256 = "aPQc188pszfDQvNtsGYlRLHS5CG5VyqptSoe4/GJVvE=";
20 };
21
22 checkInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "pyzabbix"
28 ];
29
30 meta = with lib; {
31 description = "Python module to interact with Zabbix";
32 homepage = "https://github.com/adubkov/py-zabbix";
33 license = licenses.gpl2Only;
34 maintainers = with maintainers; [ fab ];
35 };
36}