Accepting request 986502 from home:bnavigator:branches:devel:languages:python:mailman

- Add hyperkitty-fix-py310-tests.patch
  * Fix test failures on Python 3.10 (and Python 3.9.13)
  * https://gitlab.com/mailman/hyperkitty/-/issues/401
  * https://gitlab.com/mailman/hyperkitty/-/merge_requests/381
  * https://gitlab.com/mailman/hyperkitty/-/merge_requests/449

OBS-URL: https://build.opensuse.org/request/show/986502
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:mailman/python-HyperKitty?expand=0&rev=55
This commit is contained in:
2022-07-04 06:05:25 +00:00
committed by Git OBS Bridge
parent bf1e8fe2ee
commit 6265b03cbf
4 changed files with 116 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ Patch2: hyperkitty-django4.patch
Patch3: python-HyperKitty-no-mock.patch
# https://gitlab.com/mailman/hyperkitty/-/commit/3edc0c58b8dea3b0bdccd77c0794ada28d1c6f61
Patch4: hyperkitty-fix-qcluster-timeout.patch
# https://gitlab.com/mailman/hyperkitty/-/merge_requests/381 + https://gitlab.com/mailman/hyperkitty/-/merge_requests/449
Patch5: hyperkitty-fix-py310-tests.patch
#
BuildRequires: %{python_module django-debug-toolbar >= 2.2}
BuildRequires: %{python_module isort}
@@ -165,6 +167,7 @@ rsync -a example_project/* build_static_files
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
sed -i 's|^#!/usr/bin/env.*|#!%{_bindir}/python3|' \