python-websocket-client: bump to 1.9.0
authorAlexandru Ardelean <redacted>
Sun, 29 Mar 2026 12:43:54 +0000 (12:43 +0000)
committerAlexandru Ardelean <redacted>
Wed, 1 Apr 2026 07:29:27 +0000 (10:29 +0300)
Changes since 1.7.0:
- v1.8.0: Add support for custom socket options and improved
  proxy handling
- v1.9.0: Fix compatibility with Python 3.12+ deprecations
- Various bug fixes for connection handling and error reporting

Also add test.sh to verify version and core API imports.

Link: https://github.com/websocket-client/websocket-client/blob/master/ChangeLog
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-websocket-client/Makefile
lang/python/python-websocket-client/test.sh [new file with mode: 0755]

index d77fabd0b595ca516b87e7301998ab458ce44578..53fd015320a860f749eb3a5f70db9181cd639348 100644 (file)
@@ -1,11 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-websocket-client
-PKG_VERSION:=1.7.0
+PKG_VERSION:=1.9.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=websocket-client
-PKG_HASH:=10e511ea3a8c744631d3bd77e61eb17ed09304c413ad42cf6ddfa4c7787e8fe6
+PYPI_SOURCE_NAME:=websocket_client
+PKG_HASH:=9e813624b6eb619999a97dc7958469217c3176312b3a16a4bd1bc7e08a46ec98
 
 PKG_MAINTAINER:=Javier Marcet <javier@marcet.info>
 PKG_LICENSE:=Apache-2.0
@@ -21,7 +22,7 @@ define Package/python3-websocket-client
   SUBMENU:=Python
   TITLE:=WebSocket client for Python. hybi13 is supported
   URL:=https://github.com/websocket-client/websocket-client
-  DEPENDS:=+python3-light +python3-logging +python3-openssl
+  DEPENDS:=+python3-light +python3-logging +python3-openssl +python3-urllib
 endef
 
 define Package/python3-websocket-client/description
diff --git a/lang/python/python-websocket-client/test.sh b/lang/python/python-websocket-client/test.sh
new file mode 100755 (executable)
index 0000000..842fb14
--- /dev/null
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+[ "$1" = "python3-websocket-client" ] || exit 0
+
+python3 - << EOF
+import sys
+import websocket
+
+if websocket.__version__ != "$2":
+    print("Wrong version: " + websocket.__version__)
+    sys.exit(1)
+
+# Verify core API is importable
+from websocket import (
+    WebSocket,
+    WebSocketApp,
+    WebSocketConnectionClosedException,
+    WebSocketTimeoutException,
+    WebSocketBadStatusException,
+    create_connection,
+    enableTrace,
+)
+
+# WebSocket can be instantiated (without connecting)
+ws = WebSocket()
+assert ws is not None
+
+# WebSocketApp can be instantiated with just a URL
+app = WebSocketApp("ws://localhost:9999")
+assert app is not None
+
+# Trace toggle does not raise
+enableTrace(False)
+
+sys.exit(0)
+EOF
git clone https://git.99rst.org/PROJECT