From 7d9840b4b9c02b0b08030fac1dad4db0dae82be9 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 25 Feb 2026 22:01:06 -0800 Subject: [PATCH 1/2] python3Packages.python-openevse-http: init at 0.2.4 --- .../python-openevse-http/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/python-openevse-http/default.nix diff --git a/pkgs/development/python-modules/python-openevse-http/default.nix b/pkgs/development/python-modules/python-openevse-http/default.nix new file mode 100644 index 000000000000..bc1d7b5e044d --- /dev/null +++ b/pkgs/development/python-modules/python-openevse-http/default.nix @@ -0,0 +1,49 @@ +{ + lib, + aiohttp, + aioresponses, + awesomeversion, + buildPythonPackage, + fetchFromGitHub, + freezegun, + pytestCheckHook, + pytest-asyncio, + setuptools, +}: + +buildPythonPackage (finalAttrs: { + pname = "python-openevse-http"; + version = "0.2.4"; + pyproject = true; + + src = fetchFromGitHub { + owner = "firstof9"; + repo = "python-openevse-http"; + tag = finalAttrs.version; + hash = "sha256-aI1IU9mGThg9tNAqdgKAG5miuVDQozWJoBaoy3cFhwY="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + awesomeversion + ]; + + nativeCheckInputs = [ + aioresponses + freezegun + pytestCheckHook + pytest-asyncio + ]; + + pythonImportsCheck = [ "openevsehttp" ]; + + meta = { + description = "Python wrapper for OpenEVSE HTTP API"; + homepage = "https://github.com/firstof9/python-openevse-http"; + changelog = "https://github.com/firstof9/python-openevse-http/releases/tag/${finalAttrs.version}"; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 018d05fc4efd..ff3351976148 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15654,6 +15654,8 @@ self: super: with self; { python-openems = callPackage ../development/python-modules/python-openems { }; + python-openevse-http = callPackage ../development/python-modules/python-openevse-http { }; + python-opensky = callPackage ../development/python-modules/python-opensky { }; python-openstackclient = callPackage ../development/python-modules/python-openstackclient { }; From e12866f812ae38a439528bf83256fc57ab86603a Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Wed, 25 Feb 2026 22:02:19 -0800 Subject: [PATCH 2/2] home-assistant: update component-packages.nix --- 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 b740f4aebd7a..ff7400f0f718 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -4388,8 +4388,9 @@ "openevse" = ps: with ps; [ ifaddr + python-openevse-http zeroconf - ]; # missing inputs: python-openevse-http + ]; "openexchangerates" = ps: with ps; [ aioopenexchangerates @@ -7801,6 +7802,7 @@ "openai_conversation" "openalpr_cloud" "openerz" + "openevse" "openexchangerates" "opengarage" "openhardwaremonitor"