diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | 24 |
1 files changed, 22 insertions, 2 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 index e26ca77d91..121b1c1964 100644 --- a/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb +++ b/meta-python/recipes-devtools/python/python3-orjson_3.11.6.bb | |||
| @@ -3,13 +3,14 @@ HOMEPAGE = "https://pypi.org/project/orjson/" | |||
| 3 | LICENSE = "MIT" | 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d" | 4 | LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d" |
| 5 | 5 | ||
| 6 | SRC_URI[sha256sum] = "0a54c72259f35299fd033042367df781c2f66d10252955ca1efb7db309b954cb" | 6 | SRCREV = "ec02024c3837255064f248c0d2d331319b75e9ad" |
| 7 | PYPI_SRC_URI = "git://github.com/ijl/orjson;protocol=https;branch=master;tag=${PV};destsuffix=orjson-${PV}" | ||
| 7 | 8 | ||
| 8 | CVE_PRODUCT = "orjson" | 9 | CVE_PRODUCT = "orjson" |
| 9 | 10 | ||
| 10 | require ${BPN}-crates.inc | 11 | require ${BPN}-crates.inc |
| 11 | 12 | ||
| 12 | inherit pypi python_maturin cargo-update-recipe-crates | 13 | inherit pypi python_maturin cargo-update-recipe-crates ptest-python-pytest |
| 13 | 14 | ||
| 14 | SRC_URI += " \ | 15 | SRC_URI += " \ |
| 15 | file://0001-Guard-avx512-module-with-x86-target-cfg.patch \ | 16 | file://0001-Guard-avx512-module-with-x86-target-cfg.patch \ |
| @@ -23,4 +24,23 @@ do_compile:prepend() { | |||
| 23 | sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml | 24 | sed -i "/panic = \"abort\"/d" ${S}/Cargo.toml |
| 24 | } | 25 | } |
| 25 | 26 | ||
| 27 | do_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 | |||
| 34 | RDEPENDS:${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 | |||
| 26 | BBCLASSEXTEND = "native nativesdk" | 46 | BBCLASSEXTEND = "native nativesdk" |
