home-assistant-custom-components.solarman: init at 1.5.1 (#427419)

This commit is contained in:
Martin Weinelt
2025-07-22 21:58:22 +02:00
committed by GitHub
3 changed files with 79 additions and 0 deletions
@@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
umodbus,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pysolarmanv5";
version = "3.0.6";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jmccrohan";
repo = "pysolarmanv5";
tag = "v${version}";
hash = "sha256-ENEXuMQGQ1Jwgpfp2v0T2dveTJoIaVu+DfefQZy8ntE=";
};
build-system = [
setuptools
];
dependencies = [
umodbus
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pysolarmanv5" ];
meta = {
description = "Python module to interact with Solarman Data Logging Sticks";
changelog = "https://github.com/jmccrohan/pysolarmanv5/blob/${src.tag}/CHANGELOG.md";
homepage = "https://github.com/jmccrohan/pysolarmanv5";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Scrumplex ];
};
}
@@ -0,0 +1,33 @@
{
buildHomeAssistantComponent,
fetchFromGitHub,
lib,
pysolarmanv5,
pyyaml,
}:
buildHomeAssistantComponent rec {
owner = "StephanJoubert";
domain = "solarman";
version = "1.5.1";
src = fetchFromGitHub {
owner = "StephanJoubert";
repo = "home_assistant_solarman";
tag = version;
hash = "sha256-+znRq7LGIxbxMEypIRqbIMgV8H4OyiOakmExx1aHEl8=";
};
dependencies = [
pysolarmanv5
pyyaml
];
meta = {
description = "Home Assistant component for Solarman collectors used with a variety of inverters";
changelog = "https://github.com/StephanJoubert/home_assistant_solarman/releases/tag/${version}";
homepage = "https://github.com/StephanJoubert/home_assistant_solarman";
maintainers = with lib.maintainers; [ Scrumplex ];
license = lib.licenses.asl20;
};
}
+2
View File
@@ -13943,6 +13943,8 @@ self: super: with self; {
pysol-cards = callPackage ../development/python-modules/pysol-cards { };
pysolarmanv5 = callPackage ../development/python-modules/pysolarmanv5 { };
pysolcast = callPackage ../development/python-modules/pysolcast { };
pysolr = callPackage ../development/python-modules/pysolr { };