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
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
freezegun,
orjson,
pydevccu,
pytest-aiohttp,
pytestCheckHook,
python-slugify,
pythonOlder,
setuptools,
voluptuous,
websocket-client,
xmltodict,
}:
buildPythonPackage rec {
pname = "hahomematic";
version = "2024.5.4";
pyproject = true;
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "danielperna84";
repo = "hahomematic";
rev = "refs/tags/${version}";
hash = "sha256-pNG1R19H3fRje2pfW2hZw3zuGnElksI+Ugm6imnzK/w=";
};
__darwinAllowLocalNetworking = true;
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools~=69.2.0" "setuptools" \
--replace-fail "wheel~=0.43.0" "wheel"
'';
build-system = [ setuptools ];
dependencies = [
aiohttp
orjson
python-slugify
voluptuous
];
nativeCheckInputs = [
freezegun
pydevccu
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [ "hahomematic" ];
meta = with lib; {
description = "Python module to interact with HomeMatic devices";
homepage = "https://github.com/danielperna84/hahomematic";
changelog = "https://github.com/danielperna84/hahomematic/blob/${src.rev}/changelog.md";
license = licenses.mit;
maintainers = with maintainers; [
dotlambda
fab
];
};
}
|