From 3da49d9d85c087ff58e859a5c5f73c507ccce814 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 6 Jul 2025 11:07:28 -0700 Subject: [PATCH 1/2] python313Packages.tessie-api: init at 0.1.2 --- .../python-modules/tessie-api/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/tessie-api/default.nix diff --git a/pkgs/development/python-modules/tessie-api/default.nix b/pkgs/development/python-modules/tessie-api/default.nix new file mode 100644 index 000000000000..36ab73a4abcb --- /dev/null +++ b/pkgs/development/python-modules/tessie-api/default.nix @@ -0,0 +1,51 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + aiohttp, + pythonOlder, + hatchling, + pytz, + pytestCheckHook, + pytest-asyncio, +}: + +buildPythonPackage rec { + pname = "tessie-api"; + version = "0.1.2"; + pyproject = true; + + disabled = pythonOlder "3.5"; + + src = fetchFromGitHub { + owner = "andrewgierens"; + repo = "tessie_python_api"; + tag = version; + hash = "sha256-uY52SSG2u4lcX9X7Ql/pn31uOwpqIy3kkuLMvsFBA3s="; + }; + + build-system = [ hatchling ]; + + dependencies = [ + aiohttp + pytz + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + ]; + + pythonImportsCheck = [ "tessie_api" ]; + + # Tests require API credentials + doCheck = false; + + meta = { + description = "Python wrapper for the Tessie API"; + homepage = "https://github.com/andrewgierens/tessie_python_api"; + changelog = "https://github.com/andrewgierens/tessie_python_api/releases/tag/${version}"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a4e739e70e5b..05eca24caf40 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17669,6 +17669,8 @@ self: super: with self; { tesserocr = callPackage ../development/python-modules/tesserocr { }; + tessie-api = callPackage ../development/python-modules/tessie-api { }; + test-results-parser = callPackage ../development/python-modules/test-results-parser { }; test-tube = callPackage ../development/python-modules/test-tube { }; From a955b83c9a31cbc88402979defe9a9ba970ae64e Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 6 Jul 2025 11:07:37 -0700 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 2cd5d9ae89a1..a0ef89957b2e 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -5862,7 +5862,8 @@ "tessie" = ps: with ps; [ tesla-fleet-api - ]; # missing inputs: tessie-api + tessie-api + ]; "text" = ps: with ps; [ ]; @@ -7607,6 +7608,7 @@ "tesla_fleet" "tesla_wall_connector" "teslemetry" + "tessie" "text" "thermobeacon" "thermopro"