diff --git a/meta/recipes-devtools/python/python3-cython/0001-Output-import-relative-paths-in-generated-C-code.-GH.patch b/meta/recipes-devtools/python/python3-cython/0001-Output-import-relative-paths-in-generated-C-code.-GH.patch
index bbafc29416..a23a3d6bef 100644
--- a/meta/recipes-devtools/python/python3-cython/0001-Output-import-relative-paths-in-generated-C-code.-GH.patch
+++ b/meta/recipes-devtools/python/python3-cython/0001-Output-import-relative-paths-in-generated-C-code.-GH.patch
@@ -1,4 +1,4 @@
-From 9b5f3b09f76899eba510c2d8f3ed2b0f752a4d1b Mon Sep 17 00:00:00 2001
+From 35e70067ac3ad2d7757a2292fae87ec9df8febea Mon Sep 17 00:00:00 2001
 From: Oscar Benjamin <oscar.j.benjamin@gmail.com>
 Date: Sat, 24 Aug 2024 08:30:31 +0100
 Subject: [PATCH] Output import-relative paths in generated C code. (GH-6341)
@@ -16,7 +16,7 @@ Signed-off-by: Ross Burton <ross.burton@arm.com>
  2 files changed, 13 insertions(+), 4 deletions(-)
 
 diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py
-index a6bb1688e..0fbb15368 100644
+index 7704d1d..c2c6fda 100644
 --- a/Cython/Compiler/ExprNodes.py
 +++ b/Cython/Compiler/ExprNodes.py
 @@ -21,6 +21,7 @@ import re
@@ -42,7 +42,7 @@ index a6bb1688e..0fbb15368 100644
  
          # This combination makes CPython create a new dict for "frame.f_locals" (see GH #1836).
 diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py
-index 43c6b5f07..8c29d6db7 100644
+index 43c6b5f..8c29d6d 100644
 --- a/Cython/Compiler/ModuleNode.py
 +++ b/Cython/Compiler/ModuleNode.py
 @@ -13,6 +13,7 @@ from collections import defaultdict
@@ -68,6 +68,3 @@ index 43c6b5f07..8c29d6db7 100644
                  code.putln('%s,' % escaped_filename.as_c_string_literal())
          else:
              # Some C compilers don't like an empty array
--- 
-2.34.1
-
diff --git a/meta/recipes-devtools/python/python3-cython_3.0.11.bb b/meta/recipes-devtools/python/python3-cython_3.0.12.bb
similarity index 93%
rename from meta/recipes-devtools/python/python3-cython_3.0.11.bb
rename to meta/recipes-devtools/python/python3-cython_3.0.12.bb
index c1d45eaff5..f1951e3ae6 100644
--- a/meta/recipes-devtools/python/python3-cython_3.0.11.bb
+++ b/meta/recipes-devtools/python/python3-cython_3.0.12.bb
@@ -8,7 +8,7 @@ LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
 
 SRC_URI += "file://0001-Output-import-relative-paths-in-generated-C-code.-GH.patch"
-SRC_URI[sha256sum] = "7146dd2af8682b4ca61331851e6aebce9fe5158e75300343f80c07ca80b1faff"
+SRC_URI[sha256sum] = "b988bb297ce76c671e28c97d017b95411010f7c77fa6623dd0bb47eed1aee1bc"
 
 inherit pypi setuptools3 cython
 
