summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb
diff options
context:
space:
mode:
authorKhem Raj <khem.raj@oss.qualcomm.com>2026-05-21 09:59:32 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-05-21 10:01:22 -0700
commitc6abe6c8b00830a0f0c75fcdbc0b8c723579024f (patch)
tree2c819835259be5a854ad226881e70b2566141d41 /meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb
parent83cad3966c320b236137a5b033374e59f87ca220 (diff)
downloadmeta-openembedded-c6abe6c8b00830a0f0c75fcdbc0b8c723579024f.tar.gz
python3-orjson: Upgrade to 3.11.9
Depends on rust 1.95 and fix building with rust 1.95 Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb b/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb
new file mode 100644
index 0000000000..2e9392fab9
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.9.bb
@@ -0,0 +1,46 @@
1SUMMARY = "orjson is a fast, correct JSON library for Python"
2HOMEPAGE = "https://pypi.org/project/orjson/"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d"
5
6SRCREV = "705515d77b28429d0b7c30c3d781abe52e8a1e5a"
7PYPI_SRC_URI = "git://github.com/ijl/orjson;protocol=https;branch=master;tag=${PV};destsuffix=orjson-${PV}"
8
9CVE_PRODUCT = "orjson"
10
11require ${BPN}-crates.inc
12
13inherit pypi python_maturin cargo-update-recipe-crates ptest-python-pytest
14
15SRC_URI += " \
16 file://0001-Guard-avx512-module-with-x86-target-cfg.patch \
17 file://0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch \
18"
19DEPENDS = "python3-maturin-native"
20
21RDEPENDS:${PN} += "python3-maturin python3-mypy"
22
23do_compile:prepend() {
24 sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml
25}
26
27do_install_ptest:append() {
28 install -d ${D}${PTEST_PATH}/data
29 cp -rf ${S}/data/* ${D}${PTEST_PATH}/data/
30 install -d ${D}${PTEST_PATH}/test
31 cp -rf ${S}/test/* ${D}${PTEST_PATH}/test/
32}
33
34RDEPENDS:${PN}-ptest += "\
35 python3-dateutil \
36 python3-dateutil-zoneinfo \
37 python3-faker \
38 python3-numpy \
39 python3-pandas \
40 python3-pendulum \
41 python3-psutil \
42 python3-pytz \
43 python3-tzdata \
44"
45
46BBCLASSEXTEND = "native nativesdk"