python-xbee: add support for the python-xbee library

https://jira.digi.com/browse/DEL-6643

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
Francisco Gil 2019-06-24 18:52:40 +02:00
parent b69dee06d8
commit 69cb3d6dac
2 changed files with 25 additions and 0 deletions

View File

@ -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

View File

@ -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"