Merge pull request #333647 from dotlambda/python3Packages.heatmiserv3

home-assistant: support heatmiser component
This commit is contained in:
Martin Weinelt 2024-08-10 14:04:34 +02:00 committed by GitHub
commit 12873fb718
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,46 @@
{
appdirs,
buildPythonPackage,
fetchFromGitHub,
importlib-resources,
lib,
poetry-core,
pyserial,
pyserial-asyncio,
pytestCheckHook,
pyyaml,
}:
buildPythonPackage rec {
pname = "heatmiserv3";
version = "2.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "andylockran";
repo = "heatmiserV3";
rev = "refs/tags/${version}";
hash = "sha256-Ia0QUMDvuvn2af52lW7ObSQ9MSPNOgWyBuFBnqfYrpM=";
};
build-system = [ poetry-core ];
dependencies = [
appdirs
importlib-resources
pyserial
pyserial-asyncio
pyyaml
];
pythonImportsCheck = [ "heatmiserv3" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Library to interact with Heatmiser Themostats using V3 protocol";
homepage = "https://github.com/andylockran/heatmiserV3";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}

View File

@ -1583,7 +1583,8 @@
pycec
];
"heatmiser" = ps: with ps; [
]; # missing inputs: heatmiserV3
heatmiserv3
];
"heiwa" = ps: with ps; [
];
"heos" = ps: with ps; [

View File

@ -5509,6 +5509,8 @@ self: super: with self; {
heapdict = callPackage ../development/python-modules/heapdict { };
heatmiserv3 = callPackage ../development/python-modules/heatmiserv3 { };
heatshrink2 = callPackage ../development/python-modules/heatshrink2 { };
heatzypy = callPackage ../development/python-modules/heatzypy { };