[meta-python][PATCH] python3-msgspec: add recipe

Khem Raj <[email protected]>
Newsgroups org.openembedded.lists.openembedded-devel
Message-ID <[email protected]>
Fast serialization and validation library for JSON, MessagePack, YAML and
TOML. Added as a runtime dependency of the forthcoming python3-max recipe,
but useful on its own.

Signed-off-by: Khem Raj <[email protected]>
---
 .../python/python3-msgspec_0.21.1.bb          | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-msgspec_0.21.1.bb

diff --git a/meta-python/recipes-devtools/python/python3-msgspec_0.21.1.bb b/meta-python/recipes-devtools/python/python3-msgspec_0.21.1.bb
new file mode 100644
index 0000000000..f12882e4c8
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-msgspec_0.21.1.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] = "2313508e394b0d208f8f56892ca9b2799e2561329de9763b19619595a6c0f72c"
+
+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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.