diff --git a/meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch b/meta/recipes-devtools/python/python3-unittest-automake-output/0002-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..7afe1bb908
--- /dev/null
+++ b/meta/recipes-devtools/python/python3-unittest-automake-output/0002-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 a3eebf8..8454a66 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/recipes-devtools/python/python3-unittest-automake-output_0.4.bb b/meta/recipes-devtools/python/python3-unittest-automake-output_0.4.bb
index 07ce70531d..f16cda97c3 100644
--- a/meta/recipes-devtools/python/python3-unittest-automake-output_0.4.bb
+++ b/meta/recipes-devtools/python/python3-unittest-automake-output_0.4.bb
@@ -5,6 +5,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=f6f16008d9fb7349f06609329f1ab93b"
 
 SRC_URI = "git://gitlab.com/rossburton/python-unittest-automake-output;protocol=https;branch=main;tag=${PV} \
            file://0001-pytest-use-hookimpl-trylast-True-instead-of-mark.try.patch \
+           file://0002-pyproject.toml-allow-building-with-flit_core-4.patch \
            "
 
 SRCREV = "4d64324a8910ad28b3157f902c35f19fcb479bc0"
