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/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b9d6206e1a21..50f388bbdab5 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 @@ -7802,6 +7803,7 @@ "openai_conversation" "openalpr_cloud" "openerz" + "openevse" "openexchangerates" "opengarage" "openhardwaremonitor" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9803b9226b29..6a4513d5566d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15695,6 +15695,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 { };