diff --git a/meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..5b87c2bcef
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-click/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,29 @@
+From: Tim Orling <tim.orling@konsulko.com>
+Subject: [PATCH] pyproject.toml: allow building with flit_core 4
+
+flit_core 4 only drops features this project does not use (the
+[tool.flit.metadata] table, sdists from VCS and --setup-py), so
+raise the upper bound to <5, as the flit 4.0 release notes suggest:
+https://flit.pypa.io/en/stable/history.html#version-4-0
+
+Not submitted to click: the Pallets maintainers declined this change
+for Jinja (issue #2232 closed as not planned, PRs #2231 and #2233
+closed), and click pins flit_core <4 the same way.
+
+Upstream-Status: Denied [https://github.com/pallets/jinja/issues/2232]
+AI-Generated: Uses Claude Code (Claude Opus 5.5)
+Signed-off-by: Tim Orling <tim.orling@konsulko.com>
+---
+diff --git a/pyproject.toml b/pyproject.toml
+index b41d72a..0955bb2 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -60,7 +60,7 @@ typing = [
+ ]
+ 
+ [build-system]
+-requires = ["flit_core>=3.11,<4"]
++requires = ["flit_core>=3.11,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+ [tool.flit.module]
diff --git a/meta/recipes-devtools/python/python3-click_8.5.1.bb b/meta/recipes-devtools/python/python3-click_8.5.1.bb
index 29cf0714d0..fa511450fd 100644
--- a/meta/recipes-devtools/python/python3-click_8.5.1.bb
+++ b/meta/recipes-devtools/python/python3-click_8.5.1.bb
@@ -8,6 +8,7 @@ HOMEPAGE = "http://click.pocoo.org/"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=1fa98232fd645608937a0fdc82e999b8"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4"
 
 inherit pypi python_flit_core ptest-python-pytest
