diff --git a/python-typing-extensions.spec b/python-typing-extensions.spec index 92f4843..5afa5e1 100644 --- a/python-typing-extensions.spec +++ b/python-typing-extensions.spec @@ -1,3 +1,6 @@ +# when building packages with new Python we need to build typing-extension without tests before pytest is available +%bcond tests 1 + Name: python-typing-extensions Version: 4.4.0 Release: 1%{?dist} @@ -14,7 +17,9 @@ BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-test +%if %{without tests} BuildRequires: python3-pytest +%endif %global _description %{expand: @@ -69,8 +74,10 @@ cp -v %{SOURCE1} src/ %pyproject_save_files typing_extensions +%if %{without tests} %check %pytest +%endif %files -n python3-typing-extensions -f %{pyproject_files} %license LICENSE