diff --git a/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb b/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb
index 49e643c710..5a3b2f0ab2 100644
--- a/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb
+++ b/meta-python/recipes-devtools/python/python3-pyyaml-include_2.2.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "https://github.com/tanbro/pyyaml-include"
 LICENSE = "GPL-3.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=d32239bcb673463ab874e80d47fae504"
 DEPENDS += "python3-setuptools-scm-native"
-SRCREV = "c5be2b7dfc4aaa91e44dbeb6fa42adc80936ef9d"
+SRCREV = "3e0db562a7b03fa1bf5cbe392c47658042596dd0"
 
 SRC_URI = " \
             git://github.com/tanbro/pyyaml-include;protocol=https;branch=main \
@@ -13,6 +13,10 @@ S = "${WORKDIR}/git"
 
 inherit python_setuptools_build_meta ptest-python-pytest
 
+do_compile:prepend() {
+    export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+}
+
 RDEPENDS:${PN} += " \
     python3-pyyaml \
     python3-fsspec \
