1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
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.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ol-iver";
repo = "denonavr";
tag = version;
hash = "sha256-/GhlSZhl4VAl0em3QLolSRS0wZQeOhhF+B/91ohqVPw=";
};
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 = {
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 = lib.licenses.mit;
maintainers = [ ];
};
}
|