From 7e54887353cd8bfb10863d343605e34af5f7c91e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 11 Jan 2024 21:09:23 +0100 Subject: [PATCH 1/2] python311Packages.gardena-bluetooth: init at 1.4.1 --- .../gardena-bluetooth/default.nix | 60 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 62 insertions(+) create mode 100644 pkgs/development/python-modules/gardena-bluetooth/default.nix diff --git a/pkgs/development/python-modules/gardena-bluetooth/default.nix b/pkgs/development/python-modules/gardena-bluetooth/default.nix new file mode 100644 index 000000000000..fb71990c99df --- /dev/null +++ b/pkgs/development/python-modules/gardena-bluetooth/default.nix @@ -0,0 +1,60 @@ +{ lib +, asyncclick +, bleak +, bleak-retry-connector +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, pytest-asyncio +, pytestCheckHook +, pythonOlder +, tzlocal +}: + +buildPythonPackage rec { + pname = "gardena-bluetooth"; + version = "1.4.1"; + pyproject = true; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "elupus"; + repo = "gardena-bluetooth"; + rev = "refs/tags/${version}"; + hash = "sha256-WnurxoSzzNTNxz6S1HSKb/lTuOyox6fG2I0Hlj95Ub0="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + bleak + bleak-retry-connector + tzlocal + ]; + + passthru.optional-dependencies = { + cli = [ + asyncclick + ]; + }; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + ]; + + pythonImportsCheck = [ + "gardena_bluetooth" + ]; + + meta = with lib; { + description = "Module for interacting with Gardena Bluetooth"; + homepage = "https://github.com/elupus/gardena-bluetooth"; + changelog = "https://github.com/elupus/gardena-bluetooth/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 61f359558431..9da19c47a37a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4378,6 +4378,8 @@ self: super: with self; { gaphas = callPackage ../development/python-modules/gaphas { }; + gardena-bluetooth = callPackage ../development/python-modules/gardena-bluetooth { }; + garminconnect-aio = callPackage ../development/python-modules/garminconnect-aio { }; garminconnect = callPackage ../development/python-modules/garminconnect { }; From 6c7fcae7829ea6dad78466c6e8b924b8bc8c7a95 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 19 Dec 2023 20:08:54 +0100 Subject: [PATCH 2/2] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 31a389b98200..84a7ac2023a5 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1530,6 +1530,7 @@ dbus-fast esphome-dashboard-api fnv-hash-fast + gardena-bluetooth ha-ffmpeg hassil home-assistant-intents @@ -1541,7 +1542,7 @@ sqlalchemy webrtc-noise-gain zeroconf - ]; # missing inputs: gardena-bluetooth + ]; "gaviota" = ps: with ps; [ ]; "gc100" = ps: with ps; [ @@ -5783,6 +5784,7 @@ "frontier_silicon" "fully_kiosk" "garages_amsterdam" + "gardena_bluetooth" "gdacs" "generic" "generic_hygrostat"