diff --git a/meta-python/recipes-devtools/python/python3-argh/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta-python/recipes-devtools/python/python3-argh/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..f3533cc864
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-argh/0001-pyproject.toml-allow-building-with-flit_core-4.patch
@@ -0,0 +1,23 @@
+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 83e4761..b94a19c 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,5 +1,5 @@
+ [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/python3-argh_0.31.3.bb b/meta-python/recipes-devtools/python/python3-argh_0.31.3.bb
index 82b45d5aaa..2f0bdc70b6 100644
--- a/meta-python/recipes-devtools/python/python3-argh_0.31.3.bb
+++ b/meta-python/recipes-devtools/python/python3-argh_0.31.3.bb
@@ -14,6 +14,7 @@ LICENSE = "LGPL-3.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=3000208d539ec061b899bce1d9ce9404 \
                     "
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "f30023d8be14ca5ee6b1b3eeab829151d7bbda464ae07dc4dd5347919c5892f9"
 
 inherit pypi python_flit_core
