ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/lang/python/python-libmodbus/Makefile b/external/subpack/lang/python/python-libmodbus/Makefile
new file mode 100644
index 0000000..79de689
--- /dev/null
+++ b/external/subpack/lang/python/python-libmodbus/Makefile
@@ -0,0 +1,36 @@
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=python-libmodbus
+PKG_VERSION:=0.6.2
+PKG_RELEASE:=1
+
+PYPI_NAME:=pylibmodbus
+PKG_HASH:=7989af81f57cc7593c86b2d74201978e931bc80f6bbe62564273477fc7059c20
+
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE
+PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-libmodbus
+ SUBMENU:=Python
+ SECTION:=lang
+ CATEGORY:=Languages
+ TITLE:=Wrapper for libmodbus
+ URL:=https://github.com/stephane/pylibmodbus
+ DEPENDS:=+libmodbus \
+ +python3-light \
+ +python3-cffi
+endef
+
+define Package/python3-libmodbus/description
+ Python Interface for libmodbus written with CFFI.
+endef
+
+$(eval $(call Py3Package,python3-libmodbus))
+$(eval $(call BuildPackage,python3-libmodbus))
+$(eval $(call BuildPackage,python3-libmodbus-src))