diff --git a/meta-python/recipes-devtools/python/python3-pytest-freezer/0001-pyproject.toml-allow-building-with-flit_core-4.patch b/meta-python/recipes-devtools/python/python3-pytest-freezer/0001-pyproject.toml-allow-building-with-flit_core-4.patch
new file mode 100644
index 0000000000..b2ee0ba21b
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-freezer/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 3d8d92b..c64857a 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-pytest-freezer_0.4.9.bb b/meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.9.bb
index c7bef48e62..9576a50608 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.9.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-freezer_0.4.9.bb
@@ -3,6 +3,7 @@ HOMEPAGE = "https://github.com/pytest-dev/pytest-freezer"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1661a0f2b9b83ed73b8e05b5683b10d0"
 
+SRC_URI += "file://0001-pyproject.toml-allow-building-with-flit_core-4.patch"
 SRC_URI[sha256sum] = "21bf16bc9cc46bf98f94382c4b5c3c389be7056ff0be33029111ae11b3f1c82a"
 
 inherit pypi python_flit_core
