You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
990 B

  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=python-libmodbus
  4. PKG_VERSION:=0.5.0
  5. PKG_RELEASE:=1
  6. PKG_LICENSE:=BSD-3-Clause
  7. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  8. PYPI_NAME:=pylibmodbus
  9. PKG_HASH:=80f837304ffa8476145ea643f6b98aa94b205013a96f1e5173d7bdc776426aee
  10. include ../pypi.mk
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python3-package.mk
  13. define Package/python-libmodbus/Default
  14. SUBMENU:=Python
  15. SECTION:=lang
  16. CATEGORY:=Languages
  17. URL:=https://pypi.org/project/pylibmodbus
  18. endef
  19. define Package/python3-libmodbus
  20. $(call Package/python-libmodbus/Default)
  21. TITLE:=pylibmodbus
  22. DEPENDS:=+libmodbus \
  23. +PACKAGE_python3-libmodbus:python3-light \
  24. +PACKAGE_python3-libmodbus:python3-cffi
  25. VARIANT:=python3
  26. endef
  27. define Package/python3-libmodbus/description
  28. Python Interface for libmodbus written with CFFI.
  29. .
  30. (Variant for Python3)
  31. endef
  32. $(eval $(call Py3Package,python3-libmodbus))
  33. $(eval $(call BuildPackage,python3-libmodbus))