package/python-libusb1: needs python3

python2 support has been dropped since version 1.10.0 and
69fd5a3ed2
resulting in the following build failure since bump to version 2.0.1 in
commit 6703b94f24:

Traceback (most recent call last):
  File "setup.py", line 22, in <module>
    from html.parser import HTMLParser
ImportError: No module named html.parser

Fixes:
 - http://autobuild.buildroot.org/results/fe011ccb7eac1be9762919f9feda35114e752d8a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2021-10-16 15:40:11 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 95b812188f
commit bfdc91cac0

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_LIBUSB1
bool "python-libusb1"
depends on BR2_PACKAGE_PYTHON3
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb
select BR2_PACKAGE_LIBUSB
@ -9,5 +10,6 @@ config BR2_PACKAGE_PYTHON_LIBUSB1
http://github.com/vpelletier/python-libusb1
comment "python-libusb1 needs a toolchain w/ threads, gcc >= 4.9"
depends on BR2_PACKAGE_PYTHON3
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9