b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=python-websocket-client |
| 4 | PKG_VERSION:=1.7.0 |
| 5 | PKG_RELEASE:=1 |
| 6 | |
| 7 | PYPI_NAME:=websocket-client |
| 8 | PKG_HASH:=10e511ea3a8c744631d3bd77e61eb17ed09304c413ad42cf6ddfa4c7787e8fe6 |
| 9 | |
| 10 | PKG_MAINTAINER:=Javier Marcet <javier@marcet.info> |
| 11 | PKG_LICENSE:=Apache-2.0 |
| 12 | PKG_LICENSE_FILES:=LICENSE |
| 13 | |
| 14 | include ../pypi.mk |
| 15 | include $(INCLUDE_DIR)/package.mk |
| 16 | include ../python3-package.mk |
| 17 | |
| 18 | define Package/python3-websocket-client |
| 19 | SECTION:=lang |
| 20 | CATEGORY:=Languages |
| 21 | SUBMENU:=Python |
| 22 | TITLE:=WebSocket client for Python. hybi13 is supported |
| 23 | URL:=https://github.com/websocket-client/websocket-client |
| 24 | DEPENDS:=+python3-light +python3-logging +python3-openssl |
| 25 | endef |
| 26 | |
| 27 | define Package/python3-websocket-client/description |
| 28 | websocket-client module is WebSocket client for python. This provide the low |
| 29 | level APIs for WebSocket. All APIs are the synchronous functions. |
| 30 | |
| 31 | websocket-client supports only hybi-13. |
| 32 | endef |
| 33 | |
| 34 | define Py3Package/python3-websocket-client/filespec |
| 35 | +|$(PYTHON3_PKG_DIR) |
| 36 | -|$(PYTHON3_PKG_DIR)/websocket/tests |
| 37 | endef |
| 38 | |
| 39 | $(eval $(call Py3Package,python3-websocket-client)) |
| 40 | $(eval $(call BuildPackage,python3-websocket-client)) |
| 41 | $(eval $(call BuildPackage,python3-websocket-client-src)) |