I've seen another attempt to update setuptools-scm to 7.0.5 that
disabled sanity-check for it.
Here's an alternative series of patches not needing to disable
sanity-checks, but requiring to move another small (0.2 MiB, no
dependency outside python-build) package to the python-build module,
This has been tested (not extensively, but Guix compiles and build all
packages I need in my personal configuration).