diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch b/meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch
new file mode 100644
index 0000000000..f4c4bfffc7
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-ptyprocess/0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch
@@ -0,0 +1,41 @@
+From: Michał Górny <mgorny@gentoo.org>
+Date: Fri, 7 Aug 2026 17:10:13 +0200
+Subject: [PATCH] Use PEP 621 metadata to fix flit-core-4 compatibility
+
+[Adapted to the 0.7.0 release, which has no requires-python.]
+
+Upstream-Status: Backport [https://github.com/pexpect/ptyprocess/commit/c7fcf9ea8414c2815f7f1b1ae8baf92b1cad9ef4]
+Signed-off-by: Tim Orling <tim.orling@konsulko.com>
+---
+diff --git a/pyproject.toml b/pyproject.toml
+index 5228534..c8d7d3a 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,13 +1,14 @@
+ [build-system]
+-requires = ["flit_core >=2,<4"]
++requires = ["flit_core >=2,<5"]
+ build-backend = "flit_core.buildapi"
+ 
+-[tool.flit.metadata]
+-module = "ptyprocess"
+-author = "Thomas Kluyver"
+-author-email = "thomas@kluyver.me.uk"
+-home-page = "https://github.com/pexpect/ptyprocess"
+-description-file = "README.rst"
++[project]
++name = "ptyprocess"
++authors = [
++    { name = "Thomas Kluyver", email = "thomas@kluyver.me.uk" },
++]
++readme = "README.rst"
++dynamic = ["version", "description"]
+ classifiers = [
+     "Development Status :: 5 - Production/Stable",
+     "Environment :: Console",
+@@ -22,3 +23,5 @@ classifiers = [
+     "Topic :: Terminals"
+ ]
+ 
++[project.urls]
++Homepage = "https://github.com/pexpect/ptyprocess"
diff --git a/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb b/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb
index 1f372d49ba..693869758a 100644
--- a/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb
+++ b/meta-python/recipes-devtools/python/python3-ptyprocess_0.7.0.bb
@@ -6,7 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=cfdcd51fa7d5808da4e74346ee394490"
 
 SRCNAME = "ptyprocess"
 
-SRC_URI += "file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch"
+SRC_URI += "\
+    file://a44312974bd9084aa568d2e18ce5b2a7e0e45983.patch \
+    file://0001-Use-PEP-621-metadata-to-fix-flit-core-4-compatibilit.patch \
+"
 SRC_URI[sha256sum] = "5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"
 
 inherit pypi python_flit_core ptest-python-pytest
