meta-digi-dey: python3-connectcore-ble: add recipe to compile Python ConnectCore BLE library

Signed-off-by: David Escalona <david.escalona@digi.com>
This commit is contained in:
David Escalona 2022-07-21 11:17:13 +02:00
parent 02a8f24a60
commit a6f56bad1a
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# Copyright (C) 2022, Digi International Inc.
SUMMARY = "Bluetooth Low Energy Python library for ConnetCore devices"
DESCRIPTION = "The ConnectCore BLE Python library allows your Digi International's ConnectCore modules to interact with mobile applications."
HOMEPAGE = "https://github.com/digi-embedded/connectcore-ble-python"
SECTION = "devel/python"
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad"
SRCBRANCH ?= "master"
SRCREV = "${AUTOREV}"
CONNECTCORE_BLE_URI_STASH = "${DIGI_MTK_GIT}/python/connectcore-ble-python.git;protocol=ssh"
CONNECTCORE_BLE_URI_GITHUB = "${DIGI_GITHUB_GIT}/connectcore-ble-python.git;protocol=https"
CONNECTCORE_BLE_URI ?= "${@oe.utils.conditional('DIGI_INTERNAL_GIT', '1' , '${CONNECTCORE_BLE_URI_STASH}', '${CONNECTCORE_BLE_URI_GITHUB}', d)}"
SRC_URI = " \
${CONNECTCORE_BLE_URI};branch=${SRCBRANCH} \
"
S = "${WORKDIR}/git"
inherit setuptools3
RDEPENDS:${PN} += " \
python3-core \
python3-bluezero \
python3-pycryptodome \
python3-srp \
python3-xbee \
"