diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb new file mode 100644 index 0000000000..e26ca77d91 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | SUMMARY = "orjson is a fast, correct JSON library for Python" | ||
| 2 | HOMEPAGE = "https://pypi.org/project/orjson/" | ||
| 3 | LICENSE = "MIT" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d" | ||
| 5 | |||
| 6 | SRC_URI[sha256sum] = "0a54c72259f35299fd033042367df781c2f66d10252955ca1efb7db309b954cb" | ||
| 7 | |||
| 8 | CVE_PRODUCT = "orjson" | ||
| 9 | |||
| 10 | require ${BPN}-crates.inc | ||
| 11 | |||
| 12 | inherit pypi python_maturin cargo-update-recipe-crates | ||
| 13 | |||
| 14 | SRC_URI += " \ | ||
| 15 | file://0001-Guard-avx512-module-with-x86-target-cfg.patch \ | ||
| 16 | file://0002-Guard-x86-feature-detection-macro-in-pystrref-object.patch \ | ||
| 17 | " | ||
| 18 | DEPENDS = "python3-maturin-native" | ||
| 19 | |||
| 20 | RDEPENDS:${PN} += "python3-maturin python3-mypy" | ||
| 21 | |||
| 22 | do_compile:prepend() { | ||
| 23 | sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml | ||
| 24 | } | ||
| 25 | |||
| 26 | BBCLASSEXTEND = "native nativesdk" | ||
