Skip to content

Instantly share code, notes, and snippets.

@shantanoo-desai
Last active September 27, 2018 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shantanoo-desai/fc00836d399f8592a30efe1ec9c56213 to your computer and use it in GitHub Desktop.
Save shantanoo-desai/fc00836d399f8592a30efe1ec9c56213 to your computer and use it in GitHub Desktop.
[Working Recipes] pynmea2 and influxdb-python recipes created using devtool. Structure followed like that of the meta-python branch in openembedded.
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully func
# (Feel free to remove these comments when editing.)
#
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=046523829184aac3703a4c60c0ae2104"
HOMEPAGE = "https://github.com/influxdb/influxdb-python"
SUMMARY = "InfluxDB client"
SRC_URI = "https://github.com/influxdata/influxdb-python/archive/v${PV}.tar.gz"
SRC_URI[md5sum] = "105d88695151e241523b31dd1375096e"
SRC_URI[sha256sum] = "620de85bcca5207b06ec1565884b6d10b4be01d579a78e08b1e922f453fdac05
DEPENDS_${PN} = "${PYTHON_PN}-modules"
# WARNING: the following rdepends are determined through basic analysis of the
# python sources, and might not be 100% accurate.
RDEPENDS_${PN} += "${PYTHON_PN}-modules \
${PYTHON_PN}-six \
${PYTHON_PN}-dateutil \
${PYTHON_PN}-pytz \
${PYTHON_PN}-requests"
inherit setuptools3 pypi
require influxdb-python.inc
# All other related code according to BSP skipped
# for brewity
IMAGE_INSTALL_append = " influxdb-python \
pynmea2 \
"
# Recipe created by recipetool
# This is the basis of a recipe and may need further editing in order to be fully functional.
# (Feel free to remove these comments when editing.)
#
# WARNING: the following LICENSE and LIC_FILES_CHKSUM values are best guesses - it is
# your responsibility to verify that the values are complete and correct.
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=bb5e173bc54080cb25079199959ba6b6"
HOMEPAGE = "https://github.com/Knio/pynmea2"
SUMMARY = "Python library for the NMEA 0183 protcol"
SRC_URI = "https://github.com/Knio/pynmea2/archive/${PV}.tar.gz"
SRC_URI[md5sum] = "a90baf61f4e676bef76099e4bd7c0581"
SRC_URI[sha256sum] = "8f8f68623bd2d5dab7f04a9c31813a3f4aa15467db0373cbce6b9b0ae44ca48e"
DEPENDS_${PN} = "${PYTHON_PN}-modules"
# WARNING: the following rdepends are determined through basic analysis of the
# python sources, and might not be 100% accurate.
RDEPENDS_${PN} += "${PYTHON_PN}-modules"
inherit setuptools3 pypi
require pynmea2.inc
@shantanoo-desai
Copy link
Author

The above mentioned recipes have been tested for Krogoth branch of Yocto with bitbake v 1.30.0 and created using devtool.

A StackExchange Query addressing missing python modules on the hardware are resolved using the above mentioned recipes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment