Unverified Commit 6d713fcd authored by Ilan Joselevich's avatar Ilan Joselevich Committed by GitHub
Browse files

home-assistant-custom-components.home_connect_alt: init at 1.2.1 (#408816)

parents 85d1fb67 84e02649
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  wheel,
  aiohttp,
  attrs,
  multidict,
  yarl,
}:

buildPythonPackage rec {
  pname = "aiohttp-sse-client";
  version = "0.2.1";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-UATiknFiSvWGFY3HFmywaHp6WZeqtbgI9LU0AOG3Ljs=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "pytest-runner" ""
  '';

  build-system = [
    setuptools
    wheel
  ];

  dependencies = [
    aiohttp
    attrs
    multidict
    yarl
  ];

  pythonImportsCheck = [
    "aiohttp_sse_client"
  ];

  meta = {
    description = "A Server-Sent Event python client base on aiohttp";
    homepage = "https://pypi.org/project/aiohttp-sse-client/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ kranzes ];
  };
}
+48 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  wheel,
  aiohttp,
  aiohttp-sse-client,
  charset-normalizer,
  dataclasses-json,
  oauth2-client,
}:

buildPythonPackage rec {
  pname = "home-connect-async";
  version = "0.8.2";
  pyproject = true;

  src = fetchPypi {
    pname = "home_connect_async";
    inherit version;
    hash = "sha256-npVMEiwclKr9HR2M03GNkyJULeLEE9BAnIw8Zoy98nQ=";
  };

  build-system = [
    setuptools
    wheel
  ];

  dependencies = [
    aiohttp
    aiohttp-sse-client
    charset-normalizer
    dataclasses-json
    oauth2-client
  ];

  pythonImportsCheck = [
    "home_connect_async"
  ];

  meta = {
    description = "Async SDK for BSH Home Connect API";
    homepage = "https://pypi.org/project/home-connect-async";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ kranzes ];
  };
}
+39 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  wheel,
  requests,
}:

buildPythonPackage rec {
  pname = "oauth2-client";
  version = "1.4.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-U4GQBEj/Gudi63xlxQEALqxGu1yi9JR3/f6vnplp8oQ=";
  };

  build-system = [
    setuptools
    wheel
  ];

  dependencies = [
    requests
  ];

  pythonImportsCheck = [
    "oauth2_client"
  ];

  meta = {
    description = "A client library for OAuth2";
    homepage = "https://pypi.org/project/oauth2-client/";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ kranzes ];
  };
}
+28 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildHomeAssistantComponent,
  home-connect-async,
}:

buildHomeAssistantComponent rec {
  owner = "ekutner";
  domain = "home_connect_alt";
  version = "1.2.1";

  src = fetchFromGitHub {
    owner = "ekutner";
    repo = "home-connect-hass";
    tag = version;
    hash = "sha256-v/C4KV/WddaXQIO709nHP4DJM/K3J3WQSrJnVaXQDSY=";
  };

  dependencies = [ home-connect-async ];

  meta = with lib; {
    description = "Alternative (and improved) Home Connect integration for Home Assistant";
    homepage = "https://github.com/ekutner/home-connect-hass";
    maintainers = with maintainers; [ kranzes ];
    license = licenses.mit;
  };
}
+6 −0
Original line number Diff line number Diff line
@@ -317,6 +317,8 @@ self: super: with self; {
  aiohttp-sse = callPackage ../development/python-modules/aiohttp-sse { };
  aiohttp-sse-client = callPackage ../development/python-modules/aiohttp-sse-client { };
  aiohttp-sse-client2 = callPackage ../development/python-modules/aiohttp-sse-client2 { };
  aiohttp-swagger = callPackage ../development/python-modules/aiohttp-swagger { };
@@ -6420,6 +6422,8 @@ self: super: with self; {
    callPackage ../development/python-modules/home-assistant-chip-wheels { }
  );
  home-connect-async = callPackage ../development/python-modules/home-connect-async { };
  homeassistant-stubs = callPackage ../servers/home-assistant/stubs.nix { };
  homeconnect = callPackage ../development/python-modules/homeconnect { };
@@ -10211,6 +10215,8 @@ self: super: with self; {
  oath = callPackage ../development/python-modules/oath { };
  oauth2-client = callPackage ../development/python-modules/oauth2-client { };
  oauth2client = callPackage ../development/python-modules/oauth2client { };
  oauthenticator = callPackage ../development/python-modules/oauthenticator { };