From ddc728ad43ccd196b11569e445b1f4310bc50882 Mon Sep 17 00:00:00 2001 From: Martin Schwan Date: Thu, 23 Oct 2025 11:46:30 +0200 Subject: python3-orjson: Add recipe orjson is a fast, correct JSON library for Python. Signed-off-by: Martin Schwan Signed-off-by: Khem Raj --- .../python/python3-orjson_3.10.17.bb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-orjson_3.10.17.bb (limited to 'meta-python/recipes-devtools/python/python3-orjson_3.10.17.bb') diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.10.17.bb b/meta-python/recipes-devtools/python/python3-orjson_3.10.17.bb new file mode 100644 index 0000000000..7db76c9415 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-orjson_3.10.17.bb @@ -0,0 +1,20 @@ +SUMMARY = "orjson is a fast, correct JSON library for Python" +HOMEPAGE = "https://pypi.org/project/orjson/" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d" + +SRC_URI[sha256sum] = "28eeae6a15243966962b658dfcf7bae9e7bb1f3260dfcf0370dbd41f5ff6058b" + +require ${BPN}-crates.inc + +inherit pypi python_maturin cargo-update-recipe-crates + +DEPENDS = "python3-maturin-native" + +RDEPENDS:${PN} += "python3-maturin python3-mypy" + +do_compile:prepend() { + sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml +} + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf