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
72
73
74
75
76
77
78
79
80
81
82
83
84
|
{ lib
, aiofiles
, aiohttp
, async-generator
, buildPythonPackage
, fetchFromGitHub
, pypubsub
, pyserial
, pyserial-asyncio
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, setuptools
, voluptuous
, wheel
}:
buildPythonPackage rec {
pname = "pyinsteon";
version = "1.5.3";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-9d6QbekUv63sjKdK+ZogYOkGfFXVW+JB6ITHnehLwtM=";
};
nativeBuildInputs = [
setuptools
wheel
];
propagatedBuildInputs = [
aiofiles
aiohttp
pypubsub
pyserial
pyserial-asyncio
voluptuous
];
nativeCheckInputs = [
async-generator
pytestCheckHook
];
disabledTests = lib.optionals (pythonAtLeast "3.12") [
# AssertionError: Failed test 'read_eeprom_response' with argument 'group' value X vs expected value Z
"test_async_send"
"test_nak_response"
"test_no_direct_ack"
"test_on_level"
"test_on_level_group"
"test_on_level_nak"
# AssertionError: Failed test 'read_eeprom_response' with argument 'target' value X vs expected value Y
"test_other_status"
"test_status_command"
"test_status_request_hub"
# stuck in epoll
"test_read_all_peek"
];
pythonImportsCheck = [
"pyinsteon"
];
meta = with lib; {
description = "Python library to support Insteon home automation projects";
mainProgram = "insteon_tools";
longDescription = ''
This is a Python package to interface with an Insteon Modem. It has been
tested to work with most USB or RS-232 serial based devices such as the
2413U, 2412S, 2448A7 and Hub models 2242 and 2245.
'';
homepage = "https://github.com/pyinsteon/pyinsteon";
changelog = "https://github.com/pyinsteon/pyinsteon/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|