From 063662081d4f4e70e36f026824d1b0c74f09f94678a0cc88ee1b3ef2da583baa Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 13 Dec 2023 10:34:28 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trio-websocket?expand=0&rev=4 --- python-trio-websocket.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python-trio-websocket.spec b/python-trio-websocket.spec index 6e3c077..ad65822 100644 --- a/python-trio-websocket.spec +++ b/python-trio-websocket.spec @@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module exceptiongroup} +BuildRequires: %{python_module exceptiongroup if %python-base < 3.11} BuildRequires: %{python_module pytest-trio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module trio >= 0.11} @@ -38,7 +38,9 @@ BuildRequires: %{python_module trustme} BuildRequires: %{python_module wsproto >= 0.14} # /SECTION BuildRequires: fdupes +%if 0%{?python_version_nodots} < 311 Requires: python-exceptiongroup +%endif Requires: python-trio >= 0.11 Requires: python-wsproto >= 0.14 BuildArch: noarch