- Make python-pycryptodome dependency only required for Factory.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jose?expand=0&rev=15
This commit is contained in:
Daniel Garcia 2024-05-07 09:59:10 +00:00 committed by Git OBS Bridge
parent ff2ca96bea
commit cd84edb32d
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 7 09:58:08 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Make python-pycryptodome dependency only required for Factory.
-------------------------------------------------------------------
Mon May 6 07:11:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>

View File

@ -61,7 +61,11 @@ Requires: python-pyasn1
Requires: python-rsa
BuildArch: noarch
%if %{with test}
# pycryptodome is needed just for one test added in CVE-2024-33663.
# This package is not in Leap, so do not require for other versions.
%if 0%{?suse_version} > 1600
BuildRequires: %{python_module pycryptodome}
%endif
BuildRequires: %{python_module pytest}
%if %{with testcryptography}
BuildRequires: %{python_module python-jose-cryptography = %{version}}