diff --git a/python-hatch-vcs.spec b/python-hatch-vcs.spec index 110b7f7..42d54be 100644 --- a/python-hatch-vcs.spec +++ b/python-hatch-vcs.spec @@ -43,6 +43,8 @@ Summary: %{summary} %prep %autosetup -n hatch_vcs-%{version} +# EPEL9-specific: allow python-setuptools_scm 6.0.1 +sed -r -i 's/(setuptools-scm>=6\.)4\.0/\10\.1/' pyproject.toml %generate_buildrequires @@ -60,7 +62,11 @@ Summary: %{summary} %check %if %{with tests} -%pytest +# EPEL9: This test fails with setuptools-scm < 6.4.0. Upstream assumes that +# happens only for Python 2 (and skips the test accordingly), but we have +# allowed setuptools-scm 6.0.1 on Python 3 as well. +k="${k-}${k+ and }not test_fallback" +%pytest -k "${k-}" %else %pyproject_check_import %endif