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