1{ 2 lib, 3 async-timeout, 4 asyncstdlib, 5 attrs, 6 buildPythonPackage, 7 defusedxml, 8 fetchFromGitHub, 9 ftfy, 10 httpx, 11 netifaces, 12 pytest-asyncio, 13 pytest-httpx, 14 pytest-timeout, 15 pytestCheckHook, 16 pythonOlder, 17 setuptools, 18}: 19 20buildPythonPackage rec { 21 pname = "denonavr"; 22 version = "1.1.0"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "ol-iver"; 27 repo = "denonavr"; 28 tag = version; 29 hash = "sha256-6aEivDQQlLOGURUvaGxHHALgE9aA0r2dPvq8S0XFcAg="; 30 }; 31 32 pythonRelaxDeps = [ "defusedxml" ]; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ 37 asyncstdlib 38 attrs 39 defusedxml 40 ftfy 41 httpx 42 netifaces 43 ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; 44 45 nativeCheckInputs = [ 46 pytest-asyncio 47 pytestCheckHook 48 pytest-httpx 49 pytest-timeout 50 ]; 51 52 pythonImportsCheck = [ "denonavr" ]; 53 54 meta = with lib; { 55 description = "Automation Library for Denon AVR receivers"; 56 homepage = "https://github.com/ol-iver/denonavr"; 57 changelog = "https://github.com/ol-iver/denonavr/releases/tag/${src.tag}"; 58 license = licenses.mit; 59 maintainers = with maintainers; [ ]; 60 }; 61}