diff --git a/python-phue.changes b/python-phue.changes index e5732a0..ec9c71a 100644 --- a/python-phue.changes +++ b/python-phue.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 6 09:29:54 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Mon Mar 25 13:46:59 UTC 2019 - pgajdos@suse.com diff --git a/python-phue.spec b/python-phue.spec index 952d031..2d623fd 100644 --- a/python-phue.spec +++ b/python-phue.spec @@ -1,7 +1,7 @@ # # spec file for package python-phue # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -23,7 +23,7 @@ Release: 0 Summary: Philips Hue Python library License: MIT Group: Development/Languages/Python -Url: https://github.com/studioimaginaire/phue +URL: https://github.com/studioimaginaire/phue # https://github.com/studioimaginaire/phue/issues/152 Source0: https://github.com/studioimaginaire/phue/archive/1.1.tar.gz#/phue-%{version}.tar.gz BuildRequires: %{python_module setuptools} @@ -31,7 +31,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module fixtures} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} # /SECTION BuildArch: noarch @@ -48,6 +47,8 @@ Full featured Python library to control the Philips Hue lighting system. %python_build %check +# https://github.com/studioimaginaire/phue/issues/196 +sed -i 's:import mock:import unittest.mock as mock:' tests/test_request.py %pytest %install