summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyzabbix/default.nix
blob: 9df7687780c81956366177d9e16033531782cd56 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  packaging,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyzabbix";
  version = "1.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "lukecyca";
    repo = "pyzabbix";
    tag = version;
    hash = "sha256-2yCbxPUlbTrtjD9eKmkw0fKnjiwPzmjIo5vKGv4aerU=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    packaging
    requests
  ];

  # Tests require a running Zabbix instance
  doCheck = false;

  pythonImportsCheck = [ "pyzabbix" ];

  meta = {
    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 = lib.licenses.lgpl21Only;
    maintainers = with lib.maintainers; [ fab ];
  };
}