diff --git a/python-cryptography.spec b/python-cryptography.spec index 4d94959..e0a59a5 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -1,5 +1,6 @@ %bcond_with python2 %bcond_without python3 +%bcond_with python3.8 Name: python-cryptography Version: 2.9 @@ -104,9 +105,11 @@ popd PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest -k "not (test_buffer_protocol_alternate_modes or test_dh_parameters_supported or test_load_ecdsa_no_named_curve)" %endif +%if %{with python3.8} pushd %{py3dir} PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -k "not (test_buffer_protocol_alternate_modes or test_dh_parameters_supported or test_load_ecdsa_no_named_curve)" popd +%endif %if %{with python2} %files -n python2-cryptography