package/python-huepy: fix build with python3.8
authorLouis Aussedat <aussedat.louis@gmail.com>
Thu, 14 Nov 2019 20:14:07 +0000 (21:14 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 14 Nov 2019 20:46:36 +0000 (21:46 +0100)
Fixes:
  - http://autobuild.buildroot.net/results/240c397a6479b98f30b63b5135bfb2e45281de7d

Signed-off-by: Louis Aussedat <aussedat.louis@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/python-huepy/0001-fix-import-with-python3.patch [new file with mode: 0644]

diff --git a/package/python-huepy/0001-fix-import-with-python3.patch b/package/python-huepy/0001-fix-import-with-python3.patch
new file mode 100644 (file)
index 0000000..e04eacb
--- /dev/null
@@ -0,0 +1,8 @@
+--- a/huepy/__init__.py
++++ b/huepy/__init__.py
+@@ -1,4 +1,4 @@
+-from hue import COMMANDS
++from .hue import COMMANDS
+ __all__ = list(COMMANDS.keys())
+ __version__ = '1.0.1'