File project.diff of Package python-django-rich

--- python-django-rich.changes.orig
+++ python-django-rich.changes
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Tue Apr 23 21:03:45 UTC 2024 - Georg Pfuetzenreuter <mail+rpm@georg-pfuetzenreuter.net>
+
+- Switch to sle15_python_module_pythons to build for newer Python stack
+
+-------------------------------------------------------------------
 Mon Sep 11 21:52:59 UTC 2023 - Misha Komarovskiy <zombah@gmail.com>
 
 - update to v1.7.0:
--- python-django-rich.spec.orig
+++ python-django-rich.spec
@@ -16,7 +16,7 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?sle15_python_module_pythons}
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
 %define psuffix -test
@@ -42,6 +42,7 @@ BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module Django >= 3.2}
 BuildRequires:  %{python_module pytest-django}
 BuildRequires:  %{python_module rich >= 10.0.0}
+BuildRequires:  %{python_module django-rich = %{version}}
 %endif
 # /SECTION
 BuildRequires:  fdupes
@@ -56,7 +57,7 @@ Extensions for using Rich with Django.
 %prep
 %setup -q -n django-rich-%{version}
 sed -i '/coverage/d' tests/testapp/__init__.py
-sed -i 's/"python"/"python3"/' tests/*.py
+sed -i 's/"python"/"python3.11"/' tests/*.py
 
 %build
 %if !%{with test}
@@ -64,8 +65,8 @@ sed -i 's/"python"/"python3"/' tests/*.p
 %endif
 
 %install
-%pyproject_install
 %if !%{with test}
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
openSUSE Build Service is sponsored by