diff --git a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
index 37f6881a15..a88a6a83b7 100644
--- a/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
+++ b/meta-python/recipes-devtools/python/python3-pandas/0001-BLD-add-option-to-specify-numpy-header-location.patch
@@ -1,4 +1,4 @@
-From 65db03f03dbb61172c6eea8b34d11ea9eb0c6d77 Mon Sep 17 00:00:00 2001
+From 9e7271e0e26ab3c2d2ac500b8d7f8fbad7fa7ea3 Mon Sep 17 00:00:00 2001
 From: Gyorgy Sarvari <skandigraun@gmail.com>
 Date: Mon, 10 Mar 2025 13:52:11 +0100
 Subject: [PATCH] BLD: add option to specify numpy header location
@@ -21,22 +21,24 @@ Upstream-Status: Submitted [https://github.com/pandas-dev/pandas/pull/61095]
 Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
 Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
 ---
- meson.options      |    1 +
- pandas/meson.build |   12 +++++++++---
+ meson.options      |  1 +
+ pandas/meson.build | 12 +++++++++---
  2 files changed, 10 insertions(+), 3 deletions(-)
 
 diff --git a/meson.options b/meson.options
+index 90fec2b..ecb5456 100644
 --- a/meson.options
 +++ b/meson.options
-@@ -4,3 +4,4 @@
+@@ -4,3 +4,4 @@ option(
      value: false,
      description: 'Enable UBSan checks beyond the default `undefined` set on the hand-written C/C++ sources. Cython-generated code is excluded because its codegen would drown the results in noise. Only meaningful together with -Db_sanitize=undefined.',
  )
 +option('numpy_inc_dir', type : 'string', description : 'The absolute path to the numpy headers')
 diff --git a/pandas/meson.build b/pandas/meson.build
+index eb23344..d81c9e0 100644
 --- a/pandas/meson.build
 +++ b/pandas/meson.build
-@@ -4,17 +4,23 @@
+@@ -4,17 +4,23 @@ incdir_numpy = run_command(
          '-c',
          '''
  import os
diff --git a/meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb b/meta-python/recipes-devtools/python/python3-pandas_3.1.2.bb
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb
rename to meta-python/recipes-devtools/python/python3-pandas_3.1.2.bb
index b4d1b2e8d2..b4f3a2e289 100644
--- a/meta-python/recipes-devtools/python/python3-pandas_3.1.1.bb
+++ b/meta-python/recipes-devtools/python/python3-pandas_3.1.2.bb
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e98642e1210ade884e5254ab18d55b7d"
 
 SRC_URI:append:class-target = " file://0001-BLD-add-option-to-specify-numpy-header-location.patch "
 
-SRC_URI[sha256sum] = "05fed3e3b7c99b226f160e29d7d6cb7ef39638c758cbfe42b3f24ba34f04b859"
+SRC_URI[sha256sum] = "66c6613dbc2b5e47c1e716d8b74e78849e19ec8ef61b60d4752e725bf61e758b"
 
 CVE_PRODUCT = "pandas"
 
