66 lines
1.2 KiB
Nix
66 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
freezegun,
|
|
orjson,
|
|
pydevccu,
|
|
pytest-asyncio,
|
|
pytest-socket,
|
|
pytestCheckHook,
|
|
python-slugify,
|
|
setuptools,
|
|
voluptuous,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiohomematic";
|
|
version = "2025.8.6";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SukramJ";
|
|
repo = "aiohomematic";
|
|
tag = version;
|
|
hash = "sha256-HmcBl+uFjEeyZdilqqTxQ8wrFbDr/8tsh/l0yoVfYJg=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail "setuptools==80.9.0" "setuptools"
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
orjson
|
|
python-slugify
|
|
voluptuous
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
pydevccu
|
|
pytest-asyncio
|
|
pytest-socket
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiohomematic" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert 548 == 555
|
|
"test_central_full"
|
|
];
|
|
|
|
meta = {
|
|
description = "Module to interact with HomeMatic devices";
|
|
homepage = "https://github.com/SukramJ/aiohomematic";
|
|
changelog = "https://github.com/SukramJ/aiohomematic/blob/${src.tag}/changelog.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|