diff --git a/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee.inc b/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee.inc new file mode 100644 index 000000000..48022327f --- /dev/null +++ b/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee.inc @@ -0,0 +1,12 @@ +# Copyright (C) 2019 Digi International Inc. + +SUMMARY = "Python library to interact with Digi International's XBee radio frequency modules." +HOMEPAGE = "https://github.com/digidotcom/python-xbee" + +LICENSE = "MPL2.0" + +PYPI_PACKAGE = "digi-xbee" + +RDEPENDS_${PN} = "python3-pyserial" + +inherit pypi setuptools3 diff --git a/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_1.1.1.1.bb b/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_1.1.1.1.bb new file mode 100644 index 000000000..24085cb9e --- /dev/null +++ b/meta-digi-dey/recipes-devtools/python3-xbee/python3-xbee_1.1.1.1.bb @@ -0,0 +1,13 @@ +# Copyright (C) 2019 Digi International Inc. + +require python3-xbee.inc + +# This change of directory is needed because the package used in pypi was uploaded +# with a wrong number version. Following versions will not need this patch. +# The tarball name has the 1.1.1.1 version, but once you untar the folder is +# named as 1.1.1 instead of 1.1.1.1. so it fails when using pypi. +S = "${WORKDIR}/${PYPI_PACKAGE}-1.1.1" + +LIC_FILES_CHKSUM="file://PKG-INFO;md5=0c518add38e71d88298939007bb83940" + +SRC_URI[md5sum] = "a30377d8a55071c2d54d7ae1ca24a50b"