Unverified Commit 548725bd authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Add home-assistant custom component rct-power (#405715)

parents eaeed953 98e02613
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  click,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "rctclient";
  version = "0.0.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "svalouch";
    repo = "python-rctclient";
    tag = "v${version}";
    hash = "sha256-QPla5h8wSM9Ynj44Uwc1a2yAnu8TXbyBWzVHQeW6jnI=";
  };

  build-system = [ setuptools ];

  optional-dependencies.cli = [ click ];

  pythonImportsCheck = [ "rctclient" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Python implementation of the RCT Power GmbH Serial Communication Protocol";
    homepage = "https://github.com/svalouch/python-rctclient";
    changelog = "https://github.com/svalouch/python-rctclient/releases/tag/${src.tag}";
    license = with licenses; [ gpl3Only ];
    maintainers = with maintainers; [ _9R ];
  };
}
+33 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildHomeAssistantComponent,
  rctclient,
}:

buildHomeAssistantComponent rec {
  owner = "weltenwort";
  domain = "rct_power";
  version = "v0.14.1";

  src = fetchFromGitHub {
    owner = "weltenwort";
    repo = "home-assistant-rct-power-integration";
    tag = version;
    hash = "sha256-wM66MyRhBsMfUr+KlqV4jSuXcnKfW0fkbDAyuU2crsc=";
  };

  dependencies = [
    rctclient
  ];

  doCheck = false; # no tests

  meta = with lib; {
    changelog = "https://github.com/weltenwort/home-assistant-rct-power-integration/releases/tag/${src.tag}";
    description = "Custom integration for RCT Power Inverters";
    homepage = "https://github.com/weltenwort/home-assistant-rct-power-integration";
    maintainers = with maintainers; [ _9R ];
    license = licenses.mit;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14868,6 +14868,8 @@ self: super: with self; {
  rcssmin = callPackage ../development/python-modules/rcssmin { };
  rctclient = callPackage ../development/python-modules/rctclient { };
  rdbtools = callPackage ../development/python-modules/rdbtools { };
  rdflib = callPackage ../development/python-modules/rdflib { };