From afc140a246ede2572657d3e35758308be6e49e32 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 30 Jun 2026 10:29:34 +0200 Subject: [PATCH] python3Packages.tesla-wall-connector: 1.1.0 -> 1.2.0 Changelog: https://github.com/einarhauks/tesla-wall-connector/releases/tag/1.2.0 --- .../tesla-wall-connector/default.nix | 28 ++++++------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/pkgs/development/python-modules/tesla-wall-connector/default.nix b/pkgs/development/python-modules/tesla-wall-connector/default.nix index 183bd151f9dc..94d29ab30ef9 100644 --- a/pkgs/development/python-modules/tesla-wall-connector/default.nix +++ b/pkgs/development/python-modules/tesla-wall-connector/default.nix @@ -5,39 +5,29 @@ backoff, buildPythonPackage, fetchFromGitHub, - fetchpatch, - poetry-core, pytest-asyncio, pytestCheckHook, + uv-build, }: buildPythonPackage rec { pname = "tesla-wall-connector"; - version = "1.1.0"; + version = "1.2.0"; pyproject = true; src = fetchFromGitHub { owner = "einarhauks"; repo = "tesla-wall-connector"; tag = version; - hash = "sha256-3jj3LU0xRIC6U5DmitkTNjejvSZJWguTS/TeotOD8oc="; + hash = "sha256-CQG4upa+DTuRIvnJ7dPy7ANELks8TrlWNOWMylXJPr4="; }; - patches = [ - # https://github.com/einarhauks/tesla-wall-connector/pull/16 - (fetchpatch { - name = "replace-async-timeout-with-asyncio.timeout.patch"; - url = "https://github.com/einarhauks/tesla-wall-connector/commit/4683738b4d2cccb2be337a383243ab3f7623bf8e.patch"; - excludes = [ - ".github/workflows/python-package.yml" - "poetry.lock" - "pyproject.toml" - ]; - hash = "sha256-V9Ra7xA5JzBGe8tE8urVJNqCCdBkNmmqUcXo0cswSoY="; - }) - ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.11.6,<0.12" "uv_build" + ''; - build-system = [ poetry-core ]; + build-system = [ uv-build ]; dependencies = [ aiohttp @@ -53,9 +43,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "tesla_wall_connector" ]; meta = { - changelog = "https://github.com/einarhauks/tesla-wall-connector/releases/tag/${src.tag}"; description = "Library for communicating with a Tesla Wall Connector"; homepage = "https://github.com/einarhauks/tesla-wall-connector"; + changelog = "https://github.com/einarhauks/tesla-wall-connector/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };