forked from pool/python-phue
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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user