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.

49 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-pyserial
  9. PKG_VERSION:=3.4
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=pyserial
  12. PKG_HASH:=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
  13. PKG_LICENSE:=BSD
  14. PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
  15. include ../pypi.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../python3-package.mk
  18. define Package/python-pyserial/Default
  19. SECTION:=lang-python
  20. CATEGORY:=Languages
  21. SUBMENU:=Python
  22. URL:=https://github.com/pyserial/pyserial
  23. endef
  24. define Package/python3-pyserial
  25. $(call Package/python-pyserial/Default)
  26. TITLE:=python3-pyserial
  27. DEPENDS:=+PACKAGE_python3-pyserial:python3-light
  28. VARIANT:=python3
  29. endef
  30. define Package/python3-pyserial/description
  31. This module encapsulates the access for the serial port. It provides backends
  32. for Python running on Windows, OSX, Linux, BSD (possibly any POSIX compliant
  33. system) and IronPython. The module named "serial" automatically selects the
  34. appropriate backend.
  35. .
  36. (Variant for Python3)
  37. endef
  38. $(eval $(call Py3Package,python3-pyserial))
  39. $(eval $(call BuildPackage,python3-pyserial))
  40. $(eval $(call BuildPackage,python3-pyserial-src))