nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "zabbix-utils";
12 version = "2.0.4";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "zabbix";
17 repo = "python-zabbix-utils";
18 tag = "v${version}";
19 hash = "sha256-/9OTehMGELU70Y3ZU1ZB4/ODkI3UbfIXNQ7H/vTz6JE=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ aiohttp ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "zabbix_utils" ];
29
30 meta = {
31 description = "Library for zabbix";
32 homepage = "https://github.com/zabbix/python-zabbix-utils";
33 changelog = "https://github.com/zabbix/python-zabbix-utils/blob/${src.tag}/CHANGELOG.md";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}