home-assistant: support tilt_pi component (#427231)

This commit is contained in:
Martin Weinelt
2025-07-21 22:34:32 +02:00
committed by GitHub
3 changed files with 48 additions and 1 deletions
@@ -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 ];
};
}
@@ -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"
+2
View File
@@ -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 { };