python-bluepy: add new package

This commit is contained in:
Calin Crisan 2019-05-28 23:13:31 +03:00
parent 106e701806
commit 67d5fc46a7
4 changed files with 36 additions and 0 deletions

View File

@ -830,6 +830,7 @@ menu "External python modules"
source "package/python-bcrypt/Config.in"
source "package/python-beautifulsoup4/Config.in"
source "package/python-bitstring/Config.in"
source "package/python-bluepy/Config.in"
source "package/python-bottle/Config.in"
source "package/python-cached-property/Config.in"
source "package/python-can/Config.in"

View File

@ -0,0 +1,8 @@
\config BR2_PACKAGE_PYTHON_BLUEPY
bool "python-bluepy"
depends on BR2_PACKAGE_PYTHON3
select BR2_PACKAGE_BLUEZ5_UTILS
help
Python interface to Bluetooth LE on Linux
https://github.com/IanHarvey/bluepy

View File

@ -0,0 +1 @@
sha256 2a71edafe103565fb990256ff3624c1653036a837dfc90e1e32b839f83971cec bluepy-1.3.0.tar.gz

View File

@ -0,0 +1,26 @@
################################################################################
#
# python-bluepy
#
################################################################################
PYTHON_BLUEPY_VERSION = 1.3.0
PYTHON_BLUEPY_SOURCE = bluepy-$(PYTHON_BLUEPY_VERSION).tar.gz
PYTHON_BLUEPY_SITE = https://files.pythonhosted.org/packages/27/91/6cfca10bee9862f93015413cf9e6a52c3081a71f1518963396a055128f8e
PYTHON_BLUEPY_SETUP_TYPE = setuptools
PYTHON_BLUEPY_LICENSE = GPL-2.0+
PYTHON_BLUEPY_LICENSE_FILES = LICENSE.txt
PYTHON_BLUEPY_ENV = CC=$(TARGET_CROSS)gcc
define PYTHON_BLUEPY_REMOVE_CRAP
$(RM) $(TARGET_DIR)/usr/bin/blescan
$(RM) $(TARGET_DIR)/usr/bin/thingy52
$(RM) $(TARGET_DIR)/usr/bin/sensortag
$(RM) $(TARGET_DIR)/usr/lib/python*/site-packages/bluepy/bluez-src.tgz
$(RM) $(TARGET_DIR)/usr/lib/python*/site-packages/bluepy/*.{h,c}
$(RM) $(TARGET_DIR)/usr/lib/python*/site-packages/bluepy/Makefile
endef
PYTHON_BLUEPY_POST_INSTALL_TARGET_HOOKS += PYTHON_BLUEPY_REMOVE_CRAP
$(eval $(python-package))