From 30df48b207e6c9f63f751d49e9e783fe5e0b6ecd Mon Sep 17 00:00:00 2001 From: Angelo Compagnucci Date: Wed, 19 Oct 2022 15:35:11 +0200 Subject: [PATCH] package/python-minimalmodbus: new package Easy-to-use Modbus RTU and Modbus ASCII implementation for Python. Signed-off-by: Angelo Compagnucci Signed-off-by: Thomas Petazzoni --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-minimalmodbus/Config.in | 7 +++++++ .../python-minimalmodbus/python-minimalmodbus.hash | 4 ++++ .../python-minimalmodbus/python-minimalmodbus.mk | 14 ++++++++++++++ 5 files changed, 27 insertions(+) create mode 100644 package/python-minimalmodbus/Config.in create mode 100644 package/python-minimalmodbus/python-minimalmodbus.hash create mode 100644 package/python-minimalmodbus/python-minimalmodbus.mk diff --git a/DEVELOPERS b/DEVELOPERS index 8dbd0e0ebb..1380ae6a98 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -173,6 +173,7 @@ F: package/mono-gtksharp3/ F: package/monolite/ F: package/openjpeg/ F: package/python-can/ +F: package/python-minimalmodbus/ F: package/python-pillow/ F: package/python-pydal/ F: package/python-spidev/ diff --git a/package/Config.in b/package/Config.in index 1f4cfa7cfd..7ae354d6eb 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1116,6 +1116,7 @@ menu "External python modules" source "package/python-mbstrdecoder/Config.in" source "package/python-memory-profiler/Config.in" source "package/python-mimeparse/Config.in" + source "package/python-minimalmodbus/Config.in" source "package/python-mistune/Config.in" source "package/python-modbus-tk/Config.in" source "package/python-more-itertools/Config.in" diff --git a/package/python-minimalmodbus/Config.in b/package/python-minimalmodbus/Config.in new file mode 100644 index 0000000000..fd0f33e0d4 --- /dev/null +++ b/package/python-minimalmodbus/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_PYTHON_MINIMALMODBUS + bool "python-minimalmodbus" + select BR2_PACKAGE_PYTHON_SERIAL # runtime + help + Easy-to-use Modbus RTU and Modbus ASCII implementation. + + https://minimalmodbus.readthedocs.io/ diff --git a/package/python-minimalmodbus/python-minimalmodbus.hash b/package/python-minimalmodbus/python-minimalmodbus.hash new file mode 100644 index 0000000000..b29e83773b --- /dev/null +++ b/package/python-minimalmodbus/python-minimalmodbus.hash @@ -0,0 +1,4 @@ +# sha256 from https://pypi.org/project/minimalmodbus +sha256 cf873a2530be3f4b86467c3e4d47b5f69fd345d47451baca4adbf59e2ac36d00 minimalmodbus-2.0.1.tar.gz +# Hash for license file +sha256 abe787d472ae2069e935c84eb13fd770518dfb08b92d5f190f3cd7ff6d1f6f32 LICENSE diff --git a/package/python-minimalmodbus/python-minimalmodbus.mk b/package/python-minimalmodbus/python-minimalmodbus.mk new file mode 100644 index 0000000000..b463cf9ffe --- /dev/null +++ b/package/python-minimalmodbus/python-minimalmodbus.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-minimalmodbus +# +################################################################################ + +PYTHON_MINIMALMODBUS_VERSION = 2.0.1 +PYTHON_MINIMALMODBUS_SOURCE = minimalmodbus-$(PYTHON_MINIMALMODBUS_VERSION).tar.gz +PYTHON_MINIMALMODBUS_SITE = https://files.pythonhosted.org/packages/78/99/8cd22b4465e697bae2b02fd06aaccd4c5cdfbb18945d728db99f23d71df9 +PYTHON_MINIMALMODBUS_SETUP_TYPE = setuptools +PYTHON_MINIMALMODBUS_LICENSE = Apache-2.0 +PYTHON_MINIMALMODBUS_LICENSE_FILES = LICENSE + +$(eval $(python-package))