diff --git a/meta-python/recipes-devtools/python/tomcli/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta-python/recipes-devtools/python/tomcli/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..7e8d44f2e0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/tomcli/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,25 @@
+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
+
+Upstream-Status: Pending
+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 de3b917..f16d4af 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -2,7 +2,7 @@
+ # SPDX-License-Identifier: MIT
+ 
+ [build-system]
+-requires = ["flit_core >=3.2,<4"]
++requires = ["flit_core >=3.2,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+ [project]
diff --git a/meta-python/recipes-devtools/python/tomcli_0.10.1.bb b/meta-python/recipes-devtools/python/tomcli_0.10.1.bb
index d219f820dd..3111072e6a 100644
--- a/meta-python/recipes-devtools/python/tomcli_0.10.1.bb
+++ b/meta-python/recipes-devtools/python/tomcli_0.10.1.bb
@@ -3,6 +3,7 @@ HOMEPAGE = "https://tomcli.gtmx.me"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3c5eb6b1eb58832012789763a45d051f"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "0a27c685620b10a0f389b1d55dc66ea904054b178176d41440de55d296e1109d"
 
 inherit pypi python_flit_core ptest-python-pytest
