package/python-smbus2: new package

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@xes-inc.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Vincent Fazio
2025-04-03 08:27:40 -05:00
committed by Julien Olivain
parent 8292b8fb89
commit 43abcd4c7d
4 changed files with 27 additions and 0 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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))