From 639536d823923f0eb76b169c4ea28b0a55288ddc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 18 Feb 2024 16:58:14 +0100 Subject: [PATCH 1/2] python311Packages.govee-local-api: init at 1.4.4 Module to interact with the Govee Local API https://github.com/Galorhallen/govee-local-api --- .../govee-local-api/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/govee-local-api/default.nix diff --git a/pkgs/development/python-modules/govee-local-api/default.nix b/pkgs/development/python-modules/govee-local-api/default.nix new file mode 100644 index 000000000000..03501fa0cbcf --- /dev/null +++ b/pkgs/development/python-modules/govee-local-api/default.nix @@ -0,0 +1,44 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, poetry-dynamic-versioning +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "govee-local-api"; + version = "1.4.4"; + pyproject = true; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "Galorhallen"; + repo = "govee-local-api"; + rev = "refs/tags/v${version}"; + hash = "sha256-J4SG4n6LIZ/G6pEXAzliV7uTWzqsH7rtFe3Y7BJ2dWE="; + }; + + nativeBuildInputs = [ + poetry-core + poetry-dynamic-versioning + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "govee_local_api" + ]; + + meta = with lib; { + description = ""; + homepage = "https://github.com/Galorhallen/govee-local-api"; + changelog = "https://github.com/Galorhallen/govee-local-api/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d7bf51bd6706..88658f6d382c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4850,6 +4850,8 @@ self: super: with self; { govee-led-wez = callPackage ../development/python-modules/govee-led-wez { }; + govee-local-api = callPackage ../development/python-modules/govee-local-api { }; + goveelights = callPackage ../development/python-modules/goveelights { }; gpapi = callPackage ../development/python-modules/gpapi { }; From 69426a462e7d02fb19fd27a82409779b8cbba5f0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 18 Feb 2024 16:59:17 +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 9f8799339875..4001cf6133f0 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1807,10 +1807,11 @@ aiohttp-fast-url-dispatcher aiohttp-zlib-ng fnv-hash-fast + govee-local-api ifaddr psutil-home-assistant sqlalchemy - ]; # missing inputs: govee-local-api + ]; "gpsd" = ps: with ps; [ gps3 ]; @@ -6076,6 +6077,7 @@ "google_travel_time" "google_wifi" "govee_ble" + "govee_light_local" "gpsd" "gpslogger" "graphite"