config BR2_PACKAGE_PYTHON_PYUSB
bool "python-pyusb"
+ 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
# md5 from https://pypi.python.org/pypi/pyusb/json
-md5 c8a571bfdba778555156af3facaea6fc PyUSB-1.0.0.tar.gz
+md5 a9db479f1fb914e91d3106e67a13ae09 pyusb-1.1.1.tar.gz
# Locally computed
-sha256 5b34ffa74ac34f330bff949c94ee00ec4a9d147234db17ee2eed2a67c0275368 PyUSB-1.0.0.tar.gz
-sha256 de177fb928a0eed8d209fddbfa3861379e08b3b41f34ad17a329c2f78199371d LICENSE
+sha256 7d449ad916ce58aff60b89aae0b65ac130f289c24d6a5b7b317742eccffafc38 pyusb-1.1.1.tar.gz
+sha256 03e39fdcee9c18f2f9d0c3500a993ddeac050695eb81070ea41347587c76a7fe LICENSE
#
################################################################################
-PYTHON_PYUSB_VERSION = 1.0.0
-PYTHON_PYUSB_SOURCE = PyUSB-$(PYTHON_PYUSB_VERSION).tar.gz
-PYTHON_PYUSB_SITE = https://pypi.python.org/packages/8a/19/66fb48a4905e472f5dfeda3a1bafac369fbf6d6fc5cf55b780864962652d
+PYTHON_PYUSB_VERSION = 1.1.1
+PYTHON_PYUSB_SOURCE = pyusb-$(PYTHON_PYUSB_VERSION).tar.gz
+PYTHON_PYUSB_SITE = https://files.pythonhosted.org/packages/b9/8d/25c4e446a07e918eb39b5af25c4a83a89db95ae44e4ed5a46c3c53b0a4d6
PYTHON_PYUSB_LICENSE = BSD-3-Clause
PYTHON_PYUSB_LICENSE_FILES = LICENSE
-PYTHON_PYUSB_SETUP_TYPE = distutils
-PYTHON_PYUSB_DEPENDENCIES = libusb
+PYTHON_PYUSB_SETUP_TYPE = setuptools
+PYTHON_PYUSB_DEPENDENCIES = host-python-setuptools-scm libusb
$(eval $(python-package))