diff mbox series

[meta-python,04/14] python3-librt: Add recipe

Message ID 20261125080732.2419614-65-khem.raj@oss.qualcomm.com
State New
Headers show
Series None | expand

Commit Message

Khem Raj Nov. 25, 2026, 8:07 a.m. UTC
librt is the mypyc runtime library: C implementations of standard
library classes and functions used by mypyc compiled code. mypy 2.x
imports librt.internal at module level and requires librt >= 0.16.0.

It is a setuptools C extension. LICENSE is MIT for the library, with
the PSF-2.0 getargsfast.c and the BSD-2-Clause base64 code listed in
the same file. A native variant is needed for python3-mypy-native.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../python/python3-librt_0.17.0.bb                 | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-librt_0.17.0.bb
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-librt_0.17.0.bb b/meta-python/recipes-devtools/python/python3-librt_0.17.0.bb
new file mode 100644
index 0000000000..ede8d657e5
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-librt_0.17.0.bb
@@ -0,0 +1,14 @@ 
+SUMMARY = "Mypyc runtime library"
+DESCRIPTION = "Efficient C implementations of various Python standard \
+library classes and functions, used by mypyc compiled code and by mypy."
+HOMEPAGE = "https://github.com/mypyc/librt"
+LICENSE = "MIT AND PSF-2.0 AND BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=42baf4796d8073a1896b15d602af78f6"
+
+SRC_URI[sha256sum] = "fd18d1f708f78577556a7d76505048b9e3ad6ff61b8d9c91616a5a3f1e6c770b"
+
+inherit pypi python_setuptools_build_meta
+
+RDEPENDS:${PN} += "python3-mypy-extensions"
+
+BBCLASSEXTEND = "native nativesdk"