Commit 973b3f75 authored by Wojciech M. Zabolotny's avatar Wojciech M. Zabolotny Committed by Peter Korsgaard
Browse files

python-pyusb: new package



[Thomas: converted to the Python package infrastructure, added missing
libusb dependency in the .mk file, added missing newline in the
Config.in file, fix the package description]

Signed-off-by: default avatarWojciech M. Zabolotny <wzab01@gmail.com>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent d3e65118
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -399,6 +399,7 @@ source "package/python-protobuf/Config.in"
source "package/python-pygame/Config.in"
source "package/python-pyparsing/Config.in"
source "package/python-pyro/Config.in"
source "package/python-pyusb/Config.in"
source "package/python-pyzmq/Config.in"
source "package/python-serial/Config.in"
source "package/python-setuptools/Config.in"
+14 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_PYTHON_PYUSB
	bool "python-pyusb"
	depends on BR2_PACKAGE_PYTHON
	depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
	select BR2_PACKAGE_LIBUSB
	help
	  The PyUSB module provides easy access to the Universal
	  Serial Bus (USB) from Python.

	  http://sourceforge.net/apps/trac/pyusb/

comment "python-pyusb needs a toolchain w/ threads"
	depends on BR2_PACKAGE_PYTHON
	depends on !BR2_TOOLCHAIN_HAS_THREADS
+14 −0
Original line number Diff line number Diff line
################################################################################
#
# python-pyusb
#
################################################################################

PYTHON_PYUSB_VERSION = 0546cad8980783c39f96db717005a550059b730f
PYTHON_PYUSB_SITE = $(call github,walac,pyusb,$(PYTHON_PYUSB_VERSION))
PYTHON_PYUSB_LICENSE = BSD-3c
PYTHON_PYUSB_LICENSE_FILES = LICENSE
PYTHON_PYUSB_SETUP_TYPE = distutils
PYTHON_PYUSB_DEPENDENCIES = libusb

$(eval $(python-package))