Add home assistant custom component for mitsubishi, pymitsubishi python lib (#429868)

This commit is contained in:
Martin Weinelt
2025-08-01 11:02:37 +02:00
committed by GitHub
3 changed files with 83 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
pycryptodome,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pymitsubishi";
version = "0.1.7";
pyproject = true;
src = fetchFromGitHub {
owner = "pymitsubishi";
repo = "pymitsubishi";
tag = "v${version}";
hash = "sha256-tEmhllXvUwiJG1q7MyBrHPVVxzcZYgzTHzD8jnqfXvA=";
};
build-system = [ setuptools ];
dependencies = [
requests
pycryptodome
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pymitsubishi" ];
meta = {
description = "A Python library for controlling and monitoring Mitsubishi MAC-577IF-2E air conditioners";
homepage = "https://github.com/pymitsubishi/pymitsubishi";
changelog = "https://github.com/pymitsubishi/pymitsubishi/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ uvnikita ];
};
}
@@ -0,0 +1,40 @@
{
lib,
fetchFromGitHub,
buildHomeAssistantComponent,
pymitsubishi,
pytest-cov-stub,
pytestCheckHook,
pytest-homeassistant-custom-component,
}:
buildHomeAssistantComponent rec {
owner = "pymitsubishi";
domain = "mitsubishi";
version = "0.1.4";
src = fetchFromGitHub {
owner = "pymitsubishi";
repo = "homeassistant-mitsubishi";
tag = "v${version}";
hash = "sha256-cJBhIck33gyFTITQKlLZSdKDA3VXeVJFGcQoD49BgWQ=";
};
dependencies = [
pymitsubishi
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
pytest-homeassistant-custom-component
];
meta = with lib; {
description = "Home Assistant Mitsubishi Air Conditioner Integration";
changelog = "https://github.com/pymitsubishi/homeassistant-mitsubishi/releases/tag/v${version}";
homepage = "https://github.com/pymitsubishi/homeassistant-mitsubishi";
maintainers = with maintainers; [ uvnikita ];
license = licenses.mit;
};
}
+2
View File
@@ -13258,6 +13258,8 @@ self: super: with self; {
pymilvus = callPackage ../development/python-modules/pymilvus { };
pymitsubishi = callPackage ../development/python-modules/pymitsubishi { };
pymitv = callPackage ../development/python-modules/pymitv { };
pymodbus = callPackage ../development/python-modules/pymodbus { };