diff --git a/pkgs/development/python-modules/trmnl/default.nix b/pkgs/development/python-modules/trmnl/default.nix new file mode 100644 index 000000000000..8bc2662263b9 --- /dev/null +++ b/pkgs/development/python-modules/trmnl/default.nix @@ -0,0 +1,55 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + aiohttp, + mashumaro, + orjson, + yarl, + aioresponses, + pytest-asyncio, + pytest-cov-stub, + pytestCheckHook, + syrupy, +}: + +buildPythonPackage (finalAttrs: { + pname = "trmnl"; + version = "0.1.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "joostlek"; + repo = "python-trmnl"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Gpyhp+d27/IxDOTFxcN9ltYbOJOg9scf17qVb/ArBw0="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + mashumaro + orjson + yarl + ]; + + nativeCheckInputs = [ + aioresponses + pytest-asyncio + pytest-cov-stub + pytestCheckHook + syrupy + ]; + + pythonImportsCheck = [ "trmnl" ]; + + meta = { + description = "Asynchronous Python client for TRMNL"; + homepage = "https://github.com/joostlek/python-trmnl"; + changelog = "https://github.com/joostlek/python-trmnl/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jamiemagee ]; + }; +}) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index d12fbc74039c..c577a5688ff7 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -6626,7 +6626,8 @@ ]; "trmnl" = ps: with ps; [ - ]; # missing inputs: trmnl + trmnl + ]; "tts" = ps: with ps; [ ha-ffmpeg @@ -8332,6 +8333,7 @@ "transport_nsw" "trend" "triggercmd" + "trmnl" "tts" "tuya" "twentemilieu" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a0650b9df93a..9a0a079a9b33 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -19718,6 +19718,8 @@ self: super: with self; { } ); + trmnl = callPackage ../development/python-modules/trmnl { }; + troi = callPackage ../development/python-modules/troi { }; troposphere = callPackage ../development/python-modules/troposphere { };