1{ lib
2, asyncstdlib
3, attrs
4, buildPythonPackage
5, defusedxml
6, fetchFromGitHub
7, httpx
8, netifaces
9, pytest-asyncio
10, pytestCheckHook
11, pytest-httpx
12, pytest-timeout
13, pythonOlder
14}:
15
16buildPythonPackage rec {
17 pname = "denonavr";
18 version = "0.10.12";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchFromGitHub {
24 owner = "scarface-4711";
25 repo = pname;
26 rev = "refs/tags/${version}";
27 hash = "sha256-QNiDoPjOuwwAgUqDzXHzn0BE9bwXQrQKAIFlHCywl88=";
28 };
29
30 propagatedBuildInputs = [
31 asyncstdlib
32 attrs
33 defusedxml
34 httpx
35 netifaces
36 ];
37
38 checkInputs = [
39 pytest-asyncio
40 pytestCheckHook
41 pytest-httpx
42 pytest-timeout
43 ];
44
45 pythonImportsCheck = [
46 "denonavr"
47 ];
48
49 meta = with lib; {
50 description = "Automation Library for Denon AVR receivers";
51 homepage = "https://github.com/scarface-4711/denonavr";
52 license = with licenses; [ mit ];
53 maintainers = with maintainers; [ colemickens ];
54 };
55}