{ lib, async-timeout, asyncstdlib, attrs, buildPythonPackage, defusedxml, fetchFromGitHub, ftfy, httpx, netifaces, pytest-asyncio, pytest-httpx, pytest-timeout, pytestCheckHook, pythonOlder, setuptools, }: buildPythonPackage rec { pname = "denonavr"; version = "1.1.0"; pyproject = true; src = fetchFromGitHub { owner = "ol-iver"; repo = "denonavr"; tag = version; hash = "sha256-6aEivDQQlLOGURUvaGxHHALgE9aA0r2dPvq8S0XFcAg="; }; pythonRelaxDeps = [ "defusedxml" ]; build-system = [ setuptools ]; dependencies = [ asyncstdlib attrs defusedxml ftfy httpx netifaces ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; nativeCheckInputs = [ pytest-asyncio pytestCheckHook pytest-httpx pytest-timeout ]; pythonImportsCheck = [ "denonavr" ]; meta = with lib; { description = "Automation Library for Denon AVR receivers"; homepage = "https://github.com/ol-iver/denonavr"; changelog = "https://github.com/ol-iver/denonavr/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ ]; }; }