diff --git a/meta-python/recipes-devtools/python/python3-pytest-codspeed_5.0.3.bb b/meta-python/recipes-devtools/python/python3-pytest-codspeed_5.0.3.bb
index c782414b03..a1691024ad 100644
--- a/meta-python/recipes-devtools/python/python3-pytest-codspeed_5.0.3.bb
+++ b/meta-python/recipes-devtools/python/python3-pytest-codspeed_5.0.3.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=2856cbe664e8843cd4fd4c1d1d85c2c3"
 DEPENDS = "python3-cffi-native"
 SRC_URI[sha256sum] = "91afef90e6a96b013495e4702ef5d6358614a449e71008cdc194ef668778b92f"
 
-inherit pypi python_hatchling
+inherit pypi python_setuptools_build_meta
 
 PYPI_PACKAGE = "pytest_codspeed"
 UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
