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 pytestCheckHook, 14 pytest-httpx, 15 pytest-timeout, 16 pythonOlder, 17 setuptools, 18}: 19 20buildPythonPackage rec { 21 pname = "denonavr"; 22 version = "0.11.6"; 23 pyproject = true; 24 25 disabled = pythonOlder "3.7"; 26 27 src = fetchFromGitHub { 28 owner = "ol-iver"; 29 repo = "denonavr"; 30 rev = "refs/tags/${version}"; 31 hash = "sha256-VxoRK1qeGrIunsiCzeZJUHxW/sxk+PFpntInL+G/yI8="; 32 }; 33 34 nativeBuildInputs = [ setuptools ]; 35 36 propagatedBuildInputs = [ 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/${version}"; 58 license = with licenses; [ mit ]; 59 maintainers = with maintainers; [ colemickens ]; 60 }; 61}