diff --git a/python-pytest-django.changes b/python-pytest-django.changes index 8e9e1d1..45963e0 100644 --- a/python-pytest-django.changes +++ b/python-pytest-django.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 12:43:21 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Jan 23 08:49:57 UTC 2020 - Tomáš Chvátal diff --git a/python-pytest-django.spec b/python-pytest-django.spec index 1c98917..c30e9c9 100644 --- a/python-pytest-django.spec +++ b/python-pytest-django.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pytest-django Version: 3.8.0 Release: 0 @@ -31,7 +32,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with python2} BuildRequires: python2-pathlib2 +%endif BuildRequires: sqlite3 Requires: python-Django Requires: python-pytest