From 32e36a6135fecd65b62e2ad9b3bac04c0e8292f374f91d9ea4594fcb22a98fb6 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Apr 2022 14:51:59 +0000 Subject: [PATCH] Accepting request 967326 from home:pgajdos:python - do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/967326 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-phue?expand=0&rev=9 --- python-phue.changes | 5 +++++ python-phue.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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