Unverified Commit 538892dd authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

home-assistant: support victron_remote_monitoring component (#455443)

parents 78db3b3f d133c228
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -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 { };