Gate `build_backend::build_with_all_metadata` on `pypi` feature (#17520)
## Summary
This test, added in 0.9.26, tries to download anyio from PyPI. This PR
therefore gates it on the `pypi` feature.
<!-- What's the purpose of the change? What does it do, and why? -->
## Test Plan
<!-- How was it tested? -->
Applied as a patch to the `uv` package in Fedora and built in an offline
environment.