Note: Installation expects _sysconfigdata.py in native python DIR, but python3 doesn't have copy for it. Adding the copy in python3 recipe breaks other python packages.
Patched locally in _prepend specific to tinydb Signed-off-by: Parthiban Nallathambi <[email protected]> --- .../recipes-devtools/python/python-tinydb.inc | 20 +++++++++++++++++++ .../python/python3-tinydb_3.13.0.bb | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python-tinydb.inc create mode 100644 meta-python/recipes-devtools/python/python3-tinydb_3.13.0.bb diff --git a/meta-python/recipes-devtools/python/python-tinydb.inc b/meta-python/recipes-devtools/python/python-tinydb.inc new file mode 100644 index 000000000..f79daa0f2 --- /dev/null +++ b/meta-python/recipes-devtools/python/python-tinydb.inc @@ -0,0 +1,20 @@ +SUMMARY = "TinyDB is a lightweight document oriented database" +DESCRIPTION = "\ +TinyDB is a lightweight document oriented database optimized for \ +your happiness. It's written in pure Python and has no external \ +dependencies. The target are small apps that would be blown away \ +by a SQL-DB or an external database server." +HOMEPAGE = "https://github.com/msiemens/tinydb" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c03ea0a450e50a3a05d5a746504cb2eb" + +SRC_URI[md5sum] = "2824877e9ecfd9db5b64fdf079819358" +SRC_URI[sha256sum] = "a05c4c81e6e867c4f8a2e51c5236d0d897019aa5e9296f5947455b0bdd3c519d" + +PYPI_PACKAGE = "tinydb" +inherit pypi python3-dir +DEPENDS = "${PYTHON_PN}-pytest-runner-native" + +do_install_prepend() { + install -m 0644 ${WORKDIR}/recipe-sysroot-native/usr/lib/python-sysconfigdata/_sysconfigdata.py ${WORKDIR}/recipe-sysroot-native/usr/lib/${PYTHON_DIR} +} diff --git a/meta-python/recipes-devtools/python/python3-tinydb_3.13.0.bb b/meta-python/recipes-devtools/python/python3-tinydb_3.13.0.bb new file mode 100644 index 000000000..8996b2d44 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-tinydb_3.13.0.bb @@ -0,0 +1,2 @@ +inherit setuptools3 +require python-tinydb.inc -- 2.21.0 -- _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-devel
