diff --git a/python-ws4py.changes b/python-ws4py.changes index 8c5e1ee..2e19ed8 100644 --- a/python-ws4py.changes +++ b/python-ws4py.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 28 15:49:52 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Mon Feb 17 22:28:45 UTC 2020 - Julio González Gil diff --git a/python-ws4py.spec b/python-ws4py.spec index c4c81ba..17efc0b 100644 --- a/python-ws4py.spec +++ b/python-ws4py.spec @@ -1,7 +1,7 @@ # -# spec file for package python-ws4py +# spec file # -# Copyright (c) 2020 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 @@ -40,7 +40,6 @@ BuildArch: noarch %if %{with test} BuildRequires: %{python_module gevent} BuildRequires: %{python_module greenlet} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module tornado} BuildRequires: %{python_module ws4py = %{version}} @@ -67,6 +66,8 @@ rm test/test_cherrypy.py %if %{with test} %check +# This repository has been archived by the owner. It is now read-only. +sed -i 's:from mock:from unittest.mock:' test/test_*.py %pytest %endif