summaryrefslogtreecommitdiff
path: root/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-msgspec_0.22.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-msgspec_0.22.0.bb')
-rw-r--r--upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-msgspec_0.22.0.bb22
1 files changed, 22 insertions, 0 deletions
diff --git a/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-msgspec_0.22.0.bb b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-msgspec_0.22.0.bb
new file mode 100644
index 0000000000..23bfac7ce4
--- /dev/null
+++ b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-msgspec_0.22.0.bb
@@ -0,0 +1,22 @@
+SUMMARY = "Fast serialization and validation library for JSON, MessagePack, YAML and TOML"
+HOMEPAGE = "https://github.com/jcrist/msgspec"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c21402f8022478021f697044388b97c4"
+
+SRC_URI[sha256sum] = "0a13624a4969159fe35d8c2a3d377b2b61bbd8585e327440d5e52725affcce38"
+
+DEPENDS += "python3-setuptools-scm-native"
+
+inherit pypi python_setuptools_build_meta
+
+# msgspec builds its version with setuptools-scm, which cannot read git metadata
+# from an sdist.
+do_compile:prepend() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+}
+
+RDEPENDS:${PN} += " \
+ python3-json \
+"
+
+BBCLASSEXTEND = "native nativesdk"