From 69d532a619e62f1e4ba45ad53d784329f5c3079d Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 6 Jun 2026 22:44:59 -0700 Subject: [PATCH 1/2] python3Packages.esios-api: init at 4.4.0 --- .../python-modules/esios-api/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/esios-api/default.nix diff --git a/pkgs/development/python-modules/esios-api/default.nix b/pkgs/development/python-modules/esios-api/default.nix new file mode 100644 index 000000000000..0679e5ecce2c --- /dev/null +++ b/pkgs/development/python-modules/esios-api/default.nix @@ -0,0 +1,50 @@ +{ + lib, + aiohttp, + buildPythonPackage, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-cov-stub, + pytest-timeout, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "esios-api"; + version = "4.4.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "chiro79"; + repo = "esios-api"; + tag = finalAttrs.version; + hash = "sha256-ZmU1D+W3ah4LUwgHwaS6NJpfKPLSRgIC8psUXTy/muM="; + }; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "poetry_core>=2.4.0" "poetry_core" + ''; + + build-system = [ poetry-core ]; + + dependencies = [ aiohttp ]; + + nativeCheckInputs = [ + pytest-asyncio + pytest-cov-stub + pytest-timeout + pytestCheckHook + ]; + + pythonImportsCheck = [ "esios_api" ]; + + meta = { + description = "Retrieval of Spanish Electricity hourly prices (PVPC)"; + homepage = "https://github.com/chiro79/esios-api"; + changelog = "https://github.com/chiro79/esios-api/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 89ca0b58fe5f..8a15b0db85c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5166,6 +5166,8 @@ self: super: with self; { eseries = callPackage ../development/python-modules/eseries { }; + esios-api = callPackage ../development/python-modules/esios-api { }; + esp-idf-size = callPackage ../development/python-modules/esp-idf-size { }; espeak-phonemizer = callPackage ../development/python-modules/espeak-phonemizer { }; From 95915161f840022cb24244767abb66655705dea4 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sat, 6 Jun 2026 22:46:03 -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 71b1cac92d68..13116ff7b55b 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -5312,7 +5312,8 @@ ]; "pvpc_hourly_pricing" = ps: with ps; [ - ]; # missing inputs: esios_api + esios-api + ]; "pyload" = ps: with ps; [ pyloadapi @@ -8479,6 +8480,7 @@ "pushbullet" "pushover" "pvoutput" + "pvpc_hourly_pricing" "pyload" "python_script" "qbittorrent"