summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openembedded/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb')
-rw-r--r--meta-openembedded/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-openembedded/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb b/meta-openembedded/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb
new file mode 100644
index 0000000000..a151d6db4e
--- /dev/null
+++ b/meta-openembedded/meta-python/recipes-devtools/python/python3-nanobind_2.4.0.bb
@@ -0,0 +1,26 @@
+SUMMARY = "nanobind: tiny and efficient C++/Python bindings"
+DESCRIPTION = "nanobind: tiny and efficient C++/Python bindings"
+HOMEPAGE = "https://github.com/wjakob/nanobind"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=7646f9ee25e49eaf53f89a10665c568c"
+
+SRC_URI[sha256sum] = "a0392dee5f58881085b2ac8bfe8e53f74285aa4868b1472bfaf76cfb414e1c96"
+
+inherit pypi python_setuptools_build_meta cmake lib_package
+
+EXTRA_OECMAKE += "-DNB_TEST=OFF"
+
+DEPENDS += "\
+ python3-scikit-build-native \
+ python3-scikit-build-core-native \
+ ninja-native \
+"
+
+do_install:append() {
+ install -d ${D}${base_libdir}/cmake/${PN}
+ install -m 0644 ${S}/cmake/* ${D}${base_libdir}/cmake/${PN}/
+}
+
+FILES:${PN} += "${prefix_native}/* ${prefix_native}/${PN}/* ${base_libdir}/cmake/*"
+
+BBCLASSEXTEND = "native nativesdk"