2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
freezegun,
|
|
|
|
orjson,
|
|
|
|
pydevccu,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-slugify,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
voluptuous,
|
|
|
|
websocket-client,
|
|
|
|
xmltodict,
|
2021-12-19 01:06:50 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hahomematic";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "2024.6.0";
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.12";
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "danielperna84";
|
2024-01-13 08:15:51 +00:00
|
|
|
repo = "hahomematic";
|
2022-04-15 01:41:22 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-6WG8N4LcQ52mbrVP1aPL+xkpSQ9u3e0vV+Hf3ybh3mA=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail "setuptools~=69.2.0" "setuptools" \
|
|
|
|
--replace-fail "wheel~=0.43.0" "wheel"
|
2023-10-09 19:29:22 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-12-19 01:06:50 +00:00
|
|
|
aiohttp
|
2023-03-15 16:39:30 +00:00
|
|
|
orjson
|
2022-01-26 04:04:25 +00:00
|
|
|
python-slugify
|
2021-12-19 01:06:50 +00:00
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
freezegun
|
2022-01-07 04:07:37 +00:00
|
|
|
pydevccu
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "hahomematic" ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to interact with HomeMatic devices";
|
|
|
|
homepage = "https://github.com/danielperna84/hahomematic";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/danielperna84/hahomematic/blob/${src.rev}/changelog.md";
|
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
dotlambda
|
|
|
|
fab
|
|
|
|
];
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
}
|