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.

65 lines
1.7 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 ../python-package.mk
  18. include ../python3-package.mk
  19. define Package/python-pyserial/Default
  20. SECTION:=lang-python
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. URL:=https://github.com/pyserial/pyserial
  24. endef
  25. define Package/python-pyserial
  26. $(call Package/python-pyserial/Default)
  27. TITLE:=python-pyserial
  28. DEPENDS:=+PACKAGE_python-pyserial:python-light
  29. VARIANT:=python
  30. endef
  31. define Package/python3-pyserial
  32. $(call Package/python-pyserial/Default)
  33. TITLE:=python3-pyserial
  34. DEPENDS:=+PACKAGE_python3-pyserial:python3-light
  35. VARIANT:=python3
  36. endef
  37. define Package/python-pyserial/description
  38. This module encapsulates the access for the serial port. It provides backends
  39. for Python running on Windows, OSX, Linux, BSD (possibly any POSIX compliant
  40. system) and IronPython. The module named "serial" automatically selects the
  41. appropriate backend.
  42. endef
  43. define Package/python3-pyserial/description
  44. $(call Package/python-pyserial/description)
  45. .
  46. (Variant for Python3)
  47. endef
  48. $(eval $(call PyPackage,python-pyserial))
  49. $(eval $(call BuildPackage,python-pyserial))
  50. $(eval $(call BuildPackage,python-pyserial-src))
  51. $(eval $(call Py3Package,python3-pyserial))
  52. $(eval $(call BuildPackage,python3-pyserial))
  53. $(eval $(call BuildPackage,python3-pyserial-src))