From c717626be57b880f8adc2fd9344921be866691ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 21 Jul 2025 12:43:27 -0700 Subject: [PATCH 1/2] python3Packages.tilt-pi: init at 0.2.1 --- .../python-modules/tilt-pi/default.nix | 43 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/development/python-modules/tilt-pi/default.nix diff --git a/pkgs/development/python-modules/tilt-pi/default.nix b/pkgs/development/python-modules/tilt-pi/default.nix new file mode 100644 index 000000000000..03b700368773 --- /dev/null +++ b/pkgs/development/python-modules/tilt-pi/default.nix @@ -0,0 +1,43 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + poetry-core, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "tilt-pi"; + version = "0.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "michaelheyman"; + repo = "tilt-pi"; + tag = "v${version}"; + hash = "sha256-jGy7nwSblF486ldt4ShBEmmZtb0c4+7IuI10cN7Bw1A="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + ]; + + pythonImportsCheck = [ "tiltpi" ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/michaelheyman/tilt-pi/releases/tag/${src.tag}"; + description = "Python client for interacting with the Tilt Pi API"; + homepage = "https://github.com/michaelheyman/tilt-pi"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8d3901d5da1b..4ba4d377852a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17918,6 +17918,8 @@ self: super: with self; { tilt-ble = callPackage ../development/python-modules/tilt-ble { }; + tilt-pi = callPackage ../development/python-modules/tilt-pi { }; + time-machine = callPackage ../development/python-modules/time-machine { }; timeago = callPackage ../development/python-modules/timeago { }; From 8407828c2a3e2627f0409626e9932933c4269fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 21 Jul 2025 12:44:41 -0700 Subject: [PATCH 2/2] home-assistant: support tilt_pi component --- 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 4b300ce96ade..ab229b374a0e 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6006,7 +6006,8 @@ ]; "tilt_pi" = ps: with ps; [ - ]; # missing inputs: tilt-pi + tilt-pi + ]; "time" = ps: with ps; [ ]; @@ -7640,6 +7641,7 @@ "tibber" "tile" "tilt_ble" + "tilt_pi" "time" "time_date" "timer"