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