From a75b67387e7b1bcd96cd313a91934f5f9eba6c06 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Aug 2025 02:38:13 +0200 Subject: [PATCH] python313Packages.aiohomematic: init at 2025.8.6 Module to interact with HomeMatic devices https://github.com/SukramJ/aiohomematic --- .../python-modules/aiohomematic/default.nix | 65 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 67 insertions(+) create mode 100644 pkgs/development/python-modules/aiohomematic/default.nix diff --git a/pkgs/development/python-modules/aiohomematic/default.nix b/pkgs/development/python-modules/aiohomematic/default.nix new file mode 100644 index 000000000000..51820f1e13ce --- /dev/null +++ b/pkgs/development/python-modules/aiohomematic/default.nix @@ -0,0 +1,65 @@ +{ + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 74ca9d727350..7b201ce2db06 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -290,6 +290,8 @@ self: super: with self; { aiohomekit = callPackage ../development/python-modules/aiohomekit { }; + aiohomematic = callPackage ../development/python-modules/aiohomematic { }; + aiohttp = callPackage ../development/python-modules/aiohttp { }; aiohttp-apispec = callPackage ../development/python-modules/aiohttp-apispec { };