python3Packages.wled: 0.21.0 -> 0.22.0

https://github.com/frenck/python-wled/releases/tag/v0.22.0
This commit is contained in:
Martin Weinelt
2026-05-07 02:59:17 +02:00
parent 2d6a98bc65
commit 8f0bf4f72c
@@ -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 ];
};
}
})