home-assistant: support victron_remote_monitoring component (#455443)
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
{
|
||||
aiohttp,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
hatchling,
|
||||
lib,
|
||||
pydantic,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pytz,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "victron-vrm";
|
||||
version = "0.1.8";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "KSoft-Si";
|
||||
repo = "vrm-client";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-NxkMUwiFD8C7Nrtd7cjoFvdkbAOJkIIt+TPtkous8Nc=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
aiohttp
|
||||
pydantic
|
||||
pytz
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "victron_vrm" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# tests connect to vrmapi.victronenergy.com
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/KSoft-Si/vrm-client/releases/tag/${src.tag}";
|
||||
description = "Async Python client for the Victron Energy VRM API";
|
||||
homepage = "https://github.com/KSoft-Si/vrm-client";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.dotlambda ];
|
||||
};
|
||||
}
|
||||
@@ -6526,7 +6526,8 @@
|
||||
];
|
||||
"victron_remote_monitoring" =
|
||||
ps: with ps; [
|
||||
]; # missing inputs: victron-vrm
|
||||
victron-vrm
|
||||
];
|
||||
"vilfo" =
|
||||
ps: with ps; [
|
||||
vilfo-api-client
|
||||
@@ -7935,6 +7936,7 @@
|
||||
"version"
|
||||
"vesync"
|
||||
"vicare"
|
||||
"victron_remote_monitoring"
|
||||
"vilfo"
|
||||
"vizio"
|
||||
"vlc_telnet"
|
||||
|
||||
@@ -19801,6 +19801,8 @@ self: super: with self; {
|
||||
|
||||
vharfbuzz = callPackage ../development/python-modules/vharfbuzz { };
|
||||
|
||||
victron-vrm = callPackage ../development/python-modules/victron-vrm { };
|
||||
|
||||
videocr = callPackage ../development/python-modules/videocr { };
|
||||
|
||||
vidstab = callPackage ../development/python-modules/vidstab { };
|
||||
|
||||
Reference in New Issue
Block a user