[Buildroot] [PATCH v3 1/2] package/python-cramjam: new package

Flaviu Nistor <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
Add cramjam, a python bindings to de/compression algorithms.
It is needed by python-snappy package in order to bump the version.

Signed-off-by: Flaviu Nistor <[email protected]>
---
 package/Config.in                          |  1 +
 package/python-cramjam/Config.in           |  8 ++++++++
 package/python-cramjam/python-cramjam.hash |  4 ++++
 package/python-cramjam/python-cramjam.mk   | 14 ++++++++++++++
 4 files changed, 27 insertions(+)
 create mode 100644 package/python-cramjam/Config.in
 create mode 100644 package/python-cramjam/python-cramjam.hash
 create mode 100644 package/python-cramjam/python-cramjam.mk

diff --git a/package/Config.in b/package/Config.in
index fc1e57d30d..d4e3c2fe58 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1061,6 +1061,7 @@ menu "External python modules"
 	source "package/python-construct/Config.in"
 	source "package/python-contourpy/Config.in"
 	source "package/python-couchdb/Config.in"
+	source "package/python-cramjam/Config.in"
 	source "package/python-crayons/Config.in"
 	source "package/python-crc/Config.in"
 	source "package/python-crc16/Config.in"
diff --git a/package/python-cramjam/Config.in b/package/python-cramjam/Config.in
new file mode 100644
index 0000000000..9485c6a77a
--- /dev/null
+++ b/package/python-cramjam/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PYTHON_CRAMJAM
+	bool "python-cramjam"
+	help
+	  Python bindings to de/compression algorithms in Rust.
+	  Allows for using algorithms such as Snappy, without any
+	  system or other python dependencies.
+
+	  https://pypi.org/project/cramjam
diff --git a/package/python-cramjam/python-cramjam.hash b/package/python-cramjam/python-cramjam.hash
new file mode 100644
index 0000000000..2042bb6281
--- /dev/null
+++ b/package/python-cramjam/python-cramjam.hash
@@ -0,0 +1,4 @@
+# Locally computed sha256 checksums
+sha256  542ea349a7528d88935856d3eb562cd17bff713d7a41eab8d6812d78a3cb00ba  cramjam-2.11.0.tar.gz
+sha256  10892f279948fe9a2dd5f2c559ef78aae1ebf4b5d5825e1eaf68b03787fde402  python-cramjam-2.11.0-cargo6.tar.gz
+sha256  b4f882bfc80d27a3732789bd883a8c1d342e8ffea7f622a71b3dfded834205ff  LICENSE
diff --git a/package/python-cramjam/python-cramjam.mk b/package/python-cramjam/python-cramjam.mk
new file mode 100644
index 0000000000..e1e060bfba
--- /dev/null
+++ b/package/python-cramjam/python-cramjam.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-cramjam
+#
+################################################################################
+
+PYTHON_CRAMJAM_VERSION = 2.11.0
+PYTHON_CRAMJAM_SITE = $(call github,milesgranger,cramjam,v$(PYTHON_CRAMJAM_VERSION))
+PYTHON_CRAMJAM_SETUP_TYPE = maturin
+PYTHON_CRAMJAM_LICENSE = MIT
+PYTHON_CRAMJAM_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
+$(eval $(host-python-package))
-- 
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
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.