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/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" 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 { };