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

Merge pull request #332967 from uvNikita/somweb

home-assistant-custom-components.somweb: init at 1.1.0
parents 02990b45 b19db05d
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  lib,
  aiohttp,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "somweb";
  version = "1.2.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "taarskog";
    repo = "pySOMweb";
    rev = "v${version}";
    hash = "sha256-cLKEKDCMK7lCtbmj2KbhgJUCZpPnPI5tZvO5L+ey8qI=";
  };

  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    requests
  ];

  pythonImportsCheck = [ "somweb" ];

  doCheck = false; # no tests

  meta = with lib; {
    changelog = "https://github.com/taarskog/pySOMweb/releases/tag/v${version}";
    description = "A client library to control garage door operators produced by SOMMER through their SOMweb device";
    homepage = "https://github.com/taarskog/pysomweb";
    license = licenses.mit;
    maintainers = with maintainers; [ uvnikita ];
    mainProgram = "somweb";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -58,6 +58,8 @@

  smartthinq-sensors = callPackage ./smartthinq-sensors {};

  somweb = callPackage ./somweb {};

  spook = callPackage ./spook {};

  tuya_local = callPackage ./tuya_local {};
+29 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildHomeAssistantComponent,
  somweb,
}:

buildHomeAssistantComponent rec {
  owner = "taarskog";
  domain = "somweb";
  version = "1.1.0";

  src = fetchFromGitHub {
    inherit owner;
    repo = "home-assistant-component-somweb";
    rev = "refs/tags/v${version}";
    hash = "sha256-anOcpaGeblFVaP2EFVuxx1EuXnNgxy/QoYqvYJMv1Fo=";
  };

  dependencies = [ somweb ];

  meta = with lib; {
    changelog = "https://github.com/taarskog/home-assistant-component-somweb/releases/tag/v${version}";
    description = "Custom component for Home Assistant to manage garage doors and gates by Sommer through SOMweb";
    homepage = "https://github.com/taarskog/home-assistant-component-somweb";
    maintainers = with maintainers; [ uvnikita ];
    license = licenses.mit;
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -14712,6 +14712,8 @@ self: super: with self; {
  somfy-mylink-synergy = callPackage ../development/python-modules/somfy-mylink-synergy { };
  somweb = callPackage ../development/python-modules/somweb { };
  sonarr = callPackage ../development/python-modules/sonarr { };
  sonos-websocket = callPackage ../development/python-modules/sonos-websocket { };