Fix EPEL 9 compatibility
Upstream says the minimum required version of pytest is 6.2.4, however
the commit that sets that doesn't explain the justification for that
version. RHEL 9 has pytest 6.2.2, and the tests pass with that.
https://github.com/pypa/build/commit/720d69dadc1641769be89e3630b12b207e157ca3
Fedora is removing a toml test dependency because the test that uses it
is skipped on python 3.11+. However, RHEL 9 has python 3.9, so the
dependency is still needed.
https://github.com/pypa/build/pull/563