diff options
| author | Derek Straka <derek@asterius.io> | 2023-12-21 15:44:31 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-12-22 06:39:31 -0800 |
| commit | b39c548100d8ffeec23a0dd45affcab6a2677874 (patch) | |
| tree | df4fd1601b9e417d0497199ba260396a8e8ac69a /meta-python/recipes-devtools/python/python3-rapidjson_1.14.bb | |
| parent | e1552304bf3cd1abc403dd8cd1b4ed5cd646c64b (diff) | |
| download | meta-openembedded-b39c548100d8ffeec23a0dd45affcab6a2677874.tar.gz | |
python3-rapidjson: update to version 1.14
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-rapidjson_1.14.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-rapidjson_1.14.bb | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-rapidjson_1.14.bb b/meta-python/recipes-devtools/python/python3-rapidjson_1.14.bb new file mode 100644 index 0000000000..8b76397bfe --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-rapidjson_1.14.bb | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | SUMMARY = "Python wrapper around rapidjson" | ||
| 2 | HOMEPAGE = "https://github.com/python-rapidjson/python-rapidjson" | ||
| 3 | |||
| 4 | LICENSE = "MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=4daf3929156304df67003c33274a98bd" | ||
| 6 | |||
| 7 | SRC_URI[sha256sum] = "26806f0a658c34b48d2951d8d3f846ca9deb93a34e664ef436db632a188b6779" | ||
| 8 | |||
| 9 | # Inheriting ptest provides functionality for packaging and installing runtime tests for this recipe | ||
| 10 | inherit setuptools3 pypi ptest | ||
| 11 | |||
| 12 | PYPI_PACKAGE = "python-rapidjson" | ||
| 13 | |||
| 14 | SETUPTOOLS_BUILD_ARGS += " --rj-include-dir=${RECIPE_SYSROOT}${includedir}" | ||
| 15 | |||
| 16 | # run-ptest is a shell script that starts the test suite | ||
| 17 | SRC_URI += " \ | ||
| 18 | file://run-ptest \ | ||
| 19 | " | ||
| 20 | |||
| 21 | DEPENDS += " \ | ||
| 22 | rapidjson \ | ||
| 23 | " | ||
| 24 | |||
| 25 | # Adding required python package for the ptest (pytest and pytest->automake report translation) | ||
| 26 | RDEPENDS:${PN}-ptest += " \ | ||
| 27 | ${PYTHON_PN}-pytest \ | ||
| 28 | ${PYTHON_PN}-unittest-automake-output \ | ||
| 29 | ${PYTHON_PN}-pytz \ | ||
| 30 | " | ||
| 31 | |||
| 32 | RDEPENDS:${PN} += " \ | ||
| 33 | ${PYTHON_PN}-core \ | ||
| 34 | " | ||
| 35 | |||
| 36 | # Installing the test suite on the target | ||
| 37 | do_install_ptest() { | ||
| 38 | install -d ${D}${PTEST_PATH}/tests | ||
| 39 | cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ | ||
| 40 | } | ||
