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

Merge pull request #302272 from K900/the-hassening

home-assistant-custom-components: add a bunch of stuff
parents 976d3044 677c939d
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, cryptography
, requests
, pytestCheckHook
, pytest-socket
, requests-mock
}:

buildPythonPackage rec {
  pname = "midea-beautiful-air";
  version = "0.10.4";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "nbogojevic";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-1IOv9K8f69iRpYaCx3k0smVrCKPmDxlT/1uVoTyvIjU=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    cryptography
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-socket
    requests-mock
  ];

  disabledTestPaths = [
    # tests optional dependencies + network
    "tests/test_cli.py"
  ];

  pythonImportsCheck = [ "midea_beautiful" ];

  meta = with lib; {
    description = "Python client for accessing Midea air conditioners and dehumidifiers (Midea, Comfee, Inventor EVO) via local network";
    homepage = "https://github.com/nbogojevic/midea-beautiful-air";
    changelog = "https://github.com/nbogojevic/midea-beautiful-air/releases/tag/v${version}";
    maintainers = with maintainers; [ k900 ];
    mainProgram = "midea-beautiful-air-cli";
    license = licenses.mit;
  };
}
+6 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@

  localtuya = callPackage ./localtuya {};

  midea-air-appliances-lan = callPackage ./midea-air-appliances-lan {};

  miele = callPackage ./miele {};

  moonraker = callPackage ./moonraker {};
@@ -32,5 +34,9 @@

  sensi = callPackage ./sensi {};

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

  waste_collection_schedule = callPackage ./waste_collection_schedule {};

  yassi = callPackage ./yassi {};
}
+28 −0
Original line number Diff line number Diff line
{ lib
, buildHomeAssistantComponent
, fetchFromGitHub
, midea-beautiful-air
}:

buildHomeAssistantComponent rec {
  owner = "nbogojevic";
  domain = "midea_dehumidifier_lan";
  version = "0.9.2";

  src = fetchFromGitHub {
    inherit owner;
    repo = "homeassistant-midea-air-appliances-lan";
    rev = "v${version}";
    hash = "sha256-CNvtpC7g0XR+cNDV9sMWc3sRLsy4bXFSDvkP+I7W1Gc=";
  };

  propagatedBuildInputs = [ midea-beautiful-air ];

  meta = with lib; {
    description = "Home Assistant custom component adding support for controlling Midea air conditioners and dehumidifiers on local network";
    homepage = "https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan";
    changelog = "https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/releases/tag/v${version}";
    maintainers = with maintainers; [ k900 ];
    license = licenses.mit;
  };
}
+2 −2
Original line number Diff line number Diff line
@@ -7,13 +7,13 @@
buildHomeAssistantComponent rec {
  owner = "marcolivierarsenault";
  domain = "moonraker";
  version = "1.1.1";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "marcolivierarsenault";
    repo = "moonraker-home-assistant";
    rev = "refs/tags/${version}";
    hash = "sha256-jxMi4hmSVBU9ztoHxFINoJo8klirfo6j7gWty7FXFkQ=";
    hash = "sha256-oFHV9+5byWCOUxUhOvGHNilCZaoOp2xxb33nF8+CYjE=";
  };

  propagatedBuildInputs = [
+34 −0
Original line number Diff line number Diff line
{ lib
, buildHomeAssistantComponent
, fetchFromGitHub
, charset-normalizer
, pycountry
, xmltodict
}:

buildHomeAssistantComponent rec {
  owner = "ollo69";
  domain = "smartthinq_sensors";
  version = "0.39.0";

  src = fetchFromGitHub {
    inherit owner;
    repo = "ha-smartthinq-sensors";
    rev = "v${version}";
    hash = "sha256-mt5/XHDAUeoMUA1jWdCNXTUgZBQkqabL5Y4MxwxcweY=";
  };

  propagatedBuildInputs = [
    charset-normalizer
    pycountry
    xmltodict
  ];

  meta = with lib; {
    description = "Home Assistant custom integration for SmartThinQ LG devices configurable with Lovelace User Interface";
    homepage = "https://github.com/ollo69/ha-smartthinq-sensors";
    changelog = "https://github.com/ollo69/ha-smartthinq-sensors/releases/tag/v${version}";
    maintainers = with maintainers; [ k900 ];
    license = licenses.asl20;
  };
}
Loading