[Buildroot] [git commit] package/python-smbus2: new package
Julien Olivain
ju.o at free.fr
Thu Apr 3 19:57:29 UTC 2025
commit: https://git.buildroot.net/buildroot/commit/?id=43abcd4c7dd8ad65d2f2012f3d4292362550a3ed
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Add python-smbus2 as an alternative for python-smbus-cffi as the latter
has not seen updates in 8 years and was archived on Jan 4 2024.
Signed-off-by: Vincent Fazio <vfazio at xes-inc.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
---
package/Config.in | 1 +
package/python-smbus2/Config.in | 7 +++++++
package/python-smbus2/python-smbus2.hash | 5 +++++
package/python-smbus2/python-smbus2.mk | 14 ++++++++++++++
4 files changed, 27 insertions(+)
diff --git a/package/Config.in b/package/Config.in
index eb22c81d1d..291e784f26 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1403,6 +1403,7 @@ menu "External python modules"
source "package/python-slob/Config.in"
source "package/python-smbprotocol/Config.in"
source "package/python-smbus-cffi/Config.in"
+ source "package/python-smbus2/Config.in"
source "package/python-smmap2/Config.in"
source "package/python-snappy/Config.in"
source "package/python-sniffio/Config.in"
diff --git a/package/python-smbus2/Config.in b/package/python-smbus2/Config.in
new file mode 100644
index 0000000000..fdacae6da1
--- /dev/null
+++ b/package/python-smbus2/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_SMBUS2
+ bool "python-smbus2"
+ help
+ smbus2 is a drop-in replacement for smbus-cffi/smbus-python
+ in pure Python.
+
+ https://github.com/kplindegaard/smbus2
diff --git a/package/python-smbus2/python-smbus2.hash b/package/python-smbus2/python-smbus2.hash
new file mode 100644
index 0000000000..65f9eefaf6
--- /dev/null
+++ b/package/python-smbus2/python-smbus2.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/smbus2/json
+md5 5708a6cbf052f45a3ad6dd83c00902a6 smbus2-0.5.0.tar.gz
+sha256 4a5946fd82277870c2878befdb1a29bb28d15cda14ea4d8d2d54cf3d4bdcb035 smbus2-0.5.0.tar.gz
+# Locally computed sha256 checksums
+sha256 6ee9cf18c3a75dd76fb549a4b607ae34eedc31a796c48157895e2ad28d66ce79 LICENSE
diff --git a/package/python-smbus2/python-smbus2.mk b/package/python-smbus2/python-smbus2.mk
new file mode 100644
index 0000000000..c416a55005
--- /dev/null
+++ b/package/python-smbus2/python-smbus2.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-smbus2
+#
+################################################################################
+
+PYTHON_SMBUS2_VERSION = 0.5.0
+PYTHON_SMBUS2_SOURCE = smbus2-$(PYTHON_SMBUS2_VERSION).tar.gz
+PYTHON_SMBUS2_SITE = https://files.pythonhosted.org/packages/10/c9/6d85aa809e107adf85303010a59b340be109c8f815cbedc5c08c73bcffef
+PYTHON_SMBUS2_SETUP_TYPE = setuptools
+PYTHON_SMBUS2_LICENSE = MIT
+PYTHON_SMBUS2_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
More information about the buildroot
mailing list