b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=python-pyserial |
| 11 | PKG_VERSION:=3.5 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PYPI_NAME:=pyserial |
| 15 | PKG_HASH:=3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb |
| 16 | |
| 17 | PKG_LICENSE:=BSD-3-Clause |
| 18 | PKG_LICENSE_FILES:=LICENSE.txt |
| 19 | PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se> |
| 20 | |
| 21 | include ../pypi.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | include ../python3-package.mk |
| 24 | |
| 25 | define Package/python3-pyserial |
| 26 | SECTION:=lang |
| 27 | CATEGORY:=Languages |
| 28 | SUBMENU:=Python |
| 29 | TITLE:=Serial Port Extension |
| 30 | URL:=https://github.com/pyserial/pyserial |
| 31 | DEPENDS:=+python3-light +python3-logging +python3-urllib |
| 32 | endef |
| 33 | |
| 34 | define Package/python3-pyserial/description |
| 35 | This module encapsulates the access for the serial port. It provides |
| 36 | backends for Python running on Windows, OSX, Linux, BSD (possibly any |
| 37 | POSIX compliant system) and IronPython. The module named "serial" |
| 38 | automatically selects the appropriate backend. |
| 39 | endef |
| 40 | |
| 41 | $(eval $(call Py3Package,python3-pyserial)) |
| 42 | $(eval $(call BuildPackage,python3-pyserial)) |
| 43 | $(eval $(call BuildPackage,python3-pyserial-src)) |