blob: 870a37947e59e0984c5b6441791b983cef2d7668 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
cryptography,
ifaddr,
freezegun,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "xknx";
version = "3.14.0";
pyproject = true;
src = fetchFromGitHub {
owner = "XKNX";
repo = "xknx";
tag = finalAttrs.version;
hash = "sha256-22xKxdjf0WEF2efHiGCYVhTCZ5jrD+26oqBdlxHwYdU=";
};
build-system = [ setuptools ];
dependencies = [
cryptography
ifaddr
];
nativeCheckInputs = [
freezegun
pytest-asyncio
pytestCheckHook
];
pytestFlags = [ "--asyncio-mode=auto" ];
pythonImportsCheck = [ "xknx" ];
disabledTests = [
# Test requires network access
"test_routing_indication_multicast"
"test_scan_timeout"
"test_start_secure_routing_explicit_keyring"
"test_start_secure_routing_knx_keys"
"test_start_secure_routing_manual"
];
meta = {
description = "KNX Library Written in Python";
longDescription = ''
XKNX is an asynchronous Python library for reading and writing KNX/IP
packets. It provides support for KNX/IP routing and tunneling devices.
'';
homepage = "https://github.com/XKNX/xknx";
changelog = "https://github.com/XKNX/xknx/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
platforms = lib.platforms.linux;
};
})
|