blob: b9e6da21963c22cc10fcc771e654e0ecd6a1cf3d (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
|
{
lib,
buildPythonPackage,
pythonAtLeast,
fetchFromGitHub,
setuptools,
aiohttp,
attrs,
defusedxml,
pytest-asyncio_0,
pytest-aiohttp,
pytest-mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "arcam-fmj";
version = "2.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "elupus";
repo = "arcam_fmj";
tag = version;
hash = "sha256-Oa/uCktLITzh3ZNW8RSCt6lYax0VmbAGW+coGnoiTpo=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
attrs
defusedxml
];
nativeCheckInputs = [
pytest-asyncio_0
pytest-aiohttp
pytest-mock
pytestCheckHook
];
disabledTests = lib.optionals (pythonAtLeast "3.12") [
# stuck on EpollSelector.poll()
"test_power"
"test_multiple"
"test_invalid_command"
"test_state"
"test_silent_server_request"
"test_silent_server_disconnect"
"test_heartbeat"
"test_cancellation"
"test_unsupported_zone"
];
pythonImportsCheck = [
"arcam.fmj"
"arcam.fmj.client"
"arcam.fmj.state"
"arcam.fmj.utils"
];
meta = {
description = "Python library for speaking to Arcam receivers";
mainProgram = "arcam-fmj";
homepage = "https://github.com/elupus/arcam_fmj";
changelog = "https://github.com/elupus/arcam_fmj/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|