diff --git a/python-tox.spec b/python-tox.spec index d4e6a36..a0e45a4 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -91,6 +91,11 @@ Obsoletes: python3-tox < 3.24.4-2 %prep %autosetup -p1 -n tox-%{version} +# In https://github.com/tox-dev/tox/pull/2463 upstream insisted on pinning tomli to >=2.0.1. +# However, it works fine with 1.2.3 we have in Fedora 35+36, so we relax the dependency. +# We rely on the Fedora CI to catch problems. +sed -i 's/tomli>=2.0.1/tomli>=1.2.3/' setup.cfg + %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-x testing}