Unverified Commit 755ccd82 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

home-assistant: support idasen_desk component (#337793)

parents 217313bf 8402c311
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  idasen,
  lib,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
  pname = "idasen-ha";
  version = "2.6.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "abmantis";
    repo = "idasen-ha";
    rev = "refs/tags/${version}";
    hash = "sha256-lqqSx4jxQVq2pjVv9lvaX6nNK6OqtMjPqOtLMLpVMUU=";
  };

  build-system = [ setuptools ];

  dependencies = [ idasen ];

  pythonImportsCheck = [ "idasen_ha" ];

  nativeCheckInputs = [
    pytest-asyncio
    pytestCheckHook
  ];

  meta = {
    changelog = "https://github.com/abmantis/idasen-ha/releases/tag/${version}";
    description = "Home Assistant helper lib for the IKEA Idasen Desk integration";
    homepage = "https://github.com/abmantis/idasen-ha";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}
+3 −3
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
buildPythonPackage rec {
  pname = "idasen";
  version = "0.12.0";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.8";

@@ -25,9 +25,9 @@ buildPythonPackage rec {
    hash = "sha256-TQ+DBFpG+IeZ4/dN+YKMw3AM4Dl1rpqA1kRcb3Tb3jA=";
  };

  nativeBuildInputs = [ poetry-core ];
  build-system = [ poetry-core ];

  propagatedBuildInputs = [
  dependencies = [
    bleak
    pyyaml
    voluptuous
+3 −1
Original line number Diff line number Diff line
@@ -1821,13 +1821,14 @@
      habluetooth
      hassil
      home-assistant-intents
      idasen-ha
      ifaddr
      mutagen
      pymicro-vad
      pyserial
      pyudev
      zeroconf
    ]; # missing inputs: idasen-ha
    ];
    "idteck_prox" = ps: with ps; [
    ]; # missing inputs: rfk101py
    "ifttt" = ps: with ps; [
@@ -5164,6 +5165,7 @@
    "iaqualink"
    "ibeacon"
    "icloud"
    "idasen_desk"
    "ifttt"
    "ign_sismologia"
    "image"
+2 −0
Original line number Diff line number Diff line
@@ -5888,6 +5888,8 @@ self: super: with self; {
  idasen = callPackage ../development/python-modules/idasen { };
  idasen-ha = callPackage ../development/python-modules/idasen-ha { };
  icoextract = toPythonModule (pkgs.icoextract.override {
    python3Packages = self;
  });