From 8f0bf4f72cbbab029e888c3e4e08552c991df023 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 21 Apr 2026 02:06:21 +0200 Subject: [PATCH] python3Packages.wled: 0.21.0 -> 0.22.0 https://github.com/frenck/python-wled/releases/tag/v0.22.0 --- .../python-modules/wled/default.nix | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/wled/default.nix b/pkgs/development/python-modules/wled/default.nix index fa438c2bc15a..8aa2d8395ae3 100644 --- a/pkgs/development/python-modules/wled/default.nix +++ b/pkgs/development/python-modules/wled/default.nix @@ -1,7 +1,7 @@ { lib, aiohttp, - aresponses, + aioresponses, awesomeversion, backoff, buildPythonPackage, @@ -14,27 +14,28 @@ pytest-cov-stub, pytest-xdist, pytestCheckHook, + syrupy, typer, yarl, zeroconf, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "wled"; - version = "0.21.0"; + version = "0.22.0"; pyproject = true; src = fetchFromGitHub { owner = "frenck"; repo = "python-wled"; - tag = "v${version}"; - hash = "sha256-yJ7tiJWSOpkkLwKXo4lYlDrp1FEJ/cGoDaXJamY4ARg="; + tag = "v${finalAttrs.version}"; + hash = "sha256-CUTuIQf6gj9teLicIOtu1FUsYiYXtKeLNuDbNh/21sc="; }; postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ - --replace-fail "0.0.0" "${version}" + --replace-fail "0.0.0" "${finalAttrs.version}" ''; build-system = [ poetry-core ]; @@ -57,11 +58,18 @@ buildPythonPackage rec { }; nativeCheckInputs = [ - aresponses + aioresponses pytest-asyncio pytest-cov-stub pytest-xdist pytestCheckHook + syrupy + ] + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; + + disabledTests = [ + # wled release table rendering is inconsistent + "test_releases_command" ]; pythonImportsCheck = [ "wled" ]; @@ -69,8 +77,8 @@ buildPythonPackage rec { meta = { description = "Asynchronous Python client for WLED"; homepage = "https://github.com/frenck/python-wled"; - changelog = "https://github.com/frenck/python-wled/releases/tag/v${version}"; + changelog = "https://github.com/frenck/python-wled/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ hexa ]; }; -} +})