diff --git a/python-pywebpush.changes b/python-pywebpush.changes index fd24a47..18acc56 100644 --- a/python-pywebpush.changes +++ b/python-pywebpush.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Apr 8 10:03:17 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Tue Sep 28 01:08:03 UTC 2021 - Steve Kowalik diff --git a/python-pywebpush.spec b/python-pywebpush.spec index 69c6b71..4df22ca 100644 --- a/python-pywebpush.spec +++ b/python-pywebpush.spec @@ -1,7 +1,7 @@ # # spec file for package python-pywebpush # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -37,7 +37,6 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module cryptography >= 2.6.1} BuildRequires: %{python_module http-ece >= 1.1.0} -BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module py-vapid >= 1.5.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.21.0} @@ -59,6 +58,8 @@ WebPush publication library. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# https://github.com/web-push-libs/pywebpush/issues/146 +sed -i 's:from mock:from unittest.mock:' pywebpush/tests/test_webpush.py %pytest %post