diff options
Diffstat (limited to 'meta/recipes-devtools/python/python3-maturin_1.7.4.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-maturin_1.7.4.bb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3-maturin_1.7.4.bb b/meta/recipes-devtools/python/python3-maturin_1.7.4.bb new file mode 100644 index 0000000000..d9891b6a09 --- /dev/null +++ b/meta/recipes-devtools/python/python3-maturin_1.7.4.bb | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | SUMMARY = "Build and publish crates with pyo3, rust-cpython, cffi bindings and rust binaries as python packages" | ||
| 2 | HOMEPAGE = "https://github.com/pyo3/maturin" | ||
| 3 | SECTION = "devel/python" | ||
| 4 | LICENSE = "MIT | Apache-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://license-apache;md5=1836efb2eb779966696f473ee8540542 \ | ||
| 6 | file://license-mit;md5=85fd3b67069cff784d98ebfc7d5c0797" | ||
| 7 | |||
| 8 | SRC_URI += " \ | ||
| 9 | file://0001-build_context-improve-wheel-reproducibility-by-sorti.patch \ | ||
| 10 | " | ||
| 11 | SRC_URI[sha256sum] = "2b349d742a07527d236f0b4b6cab26f53ebecad0ceabfc09ec4c6a396e3176f9" | ||
| 12 | |||
| 13 | S = "${WORKDIR}/maturin-${PV}" | ||
| 14 | |||
| 15 | CFLAGS += "-fdebug-prefix-map=${CARGO_HOME}=${TARGET_DBGSRC_DIR}/cargo_home" | ||
| 16 | |||
| 17 | DEPENDS += "\ | ||
| 18 | python3-setuptools-rust-native \ | ||
| 19 | python3-semantic-version-native \ | ||
| 20 | python3-setuptools-rust \ | ||
| 21 | " | ||
| 22 | |||
| 23 | require ${BPN}-crates.inc | ||
| 24 | |||
| 25 | inherit pypi cargo-update-recipe-crates python_pyo3 python_setuptools_build_meta | ||
| 26 | |||
| 27 | do_configure() { | ||
| 28 | python_pyo3_do_configure | ||
| 29 | cargo_common_do_configure | ||
| 30 | python_pep517_do_configure | ||
| 31 | } | ||
| 32 | |||
| 33 | RDEPENDS:${PN} += "\ | ||
| 34 | cargo \ | ||
| 35 | python3-json \ | ||
| 36 | rust \ | ||
| 37 | " | ||
| 38 | |||
| 39 | RRECOMMENDS:${PN} += "\ | ||
| 40 | python3-ensurepip \ | ||
| 41 | python3-pip \ | ||
| 42 | python3-venv \ | ||
| 43 | " | ||
| 44 | |||
| 45 | BBCLASSEXTEND = "native nativesdk" | ||
