nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.1 kB view raw
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.2.0"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "ol-iver"; 27 repo = "denonavr"; 28 tag = version; 29 hash = "sha256-/GhlSZhl4VAl0em3QLolSRS0wZQeOhhF+B/91ohqVPw="; 30 }; 31 32 build-system = [ setuptools ]; 33 34 dependencies = [ 35 asyncstdlib 36 attrs 37 defusedxml 38 ftfy 39 httpx 40 netifaces 41 ] 42 ++ lib.optionals (pythonOlder "3.11") [ async-timeout ]; 43 44 nativeCheckInputs = [ 45 pytest-asyncio 46 pytestCheckHook 47 pytest-httpx 48 pytest-timeout 49 ]; 50 51 pythonImportsCheck = [ "denonavr" ]; 52 53 meta = { 54 description = "Automation Library for Denon AVR receivers"; 55 homepage = "https://github.com/ol-iver/denonavr"; 56 changelog = "https://github.com/ol-iver/denonavr/releases/tag/${src.tag}"; 57 license = lib.licenses.mit; 58 maintainers = [ ]; 59 }; 60}