home-assistant: support idasen_desk component (#337793)

This commit is contained in:
Robert Schütz 2024-08-28 17:06:17 -07:00 committed by GitHub
commit 755ccd82a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 49 additions and 4 deletions

View File

@ -0,0 +1,41 @@
{
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 ];
};
}

View File

@ -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

View File

@ -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"

View File

@ -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;
});