1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 packaging,
6 pythonOlder,
7 requests,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pyzabbix";
13 version = "1.3.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "lukecyca";
20 repo = "pyzabbix";
21 tag = version;
22 hash = "sha256-2yCbxPUlbTrtjD9eKmkw0fKnjiwPzmjIo5vKGv4aerU=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 packaging
29 requests
30 ];
31
32 # Tests require a running Zabbix instance
33 doCheck = false;
34
35 pythonImportsCheck = [ "pyzabbix" ];
36
37 meta = with lib; {
38 description = "Module to interact with the Zabbix API";
39 homepage = "https://github.com/lukecyca/pyzabbix";
40 changelog = "https://github.com/lukecyca/pyzabbix/blob/${version}/CHANGELOG.md";
41 license = licenses.lgpl21Only;
42 maintainers = with maintainers; [ fab ];
43 };
44}