Fix the conditional tests-related BuildRequires for Python version

python3-devel is not installed, hence the conditional needs to be on python3.
It only "worked" with toml because toml was pulled as a transitive dependency.

Related: rhbz#2208971
This commit is contained in:
Miro Hrončok 2023-05-26 14:34:32 +02:00
parent 9422982693
commit 1ca4dcdce7

View File

@ -61,7 +61,7 @@ BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(tox-current-env) >= 0.0.6 BuildRequires: python3dist(tox-current-env) >= 0.0.6
%endif %endif
BuildRequires: python3dist(wheel) BuildRequires: python3dist(wheel)
BuildRequires: (python3dist(tomli) if python3-devel < 3.11) BuildRequires: (python3dist(tomli) if python3 < 3.11)
%endif %endif
# We build on top of those: # We build on top of those: