diff mbox series

[meta-python,07/14] python3-puremagic: Add recipe

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

Commit Message

Khem Raj Nov. 25, 2026, 8:07 a.m. UTC
puremagic identifies files by their magic numbers, like libmagic, in
pure Python. psutils 3 uses it to tell PDF from PostScript input.

setuptools build with setuptools-scm for the version. Native variant
is needed because psutils imports it while generating man pages.

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

Patch

diff --git a/meta-python/recipes-devtools/python/python3-puremagic_2.3.0.bb b/meta-python/recipes-devtools/python/python3-puremagic_2.3.0.bb
new file mode 100644
index 0000000000..dfe7abe0ad
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-puremagic_2.3.0.bb
@@ -0,0 +1,21 @@ 
+SUMMARY = "Pure python implementation of magic file detection"
+DESCRIPTION = "puremagic identifies a file by its magic numbers, like \
+libmagic, but in pure Python without external dependencies."
+HOMEPAGE = "https://github.com/cdgriffith/puremagic"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=ac85ec1f210835a5806bc00df0be30d7"
+
+SRC_URI[sha256sum] = "b54e4a69dd37c50bacc879380f132382ab4e9a935529628c8975abcc73e10640"
+
+inherit pypi python_setuptools_build_meta
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN} += " \
+    python3-compression \
+    python3-core \
+    python3-json \
+    python3-netclient \
+"
+
+BBCLASSEXTEND = "native nativesdk"