Files
Khem Raj c093bc4cb2 python3-simple-websocket: Do not need network access in client ptests
The client unit tests mock socket.socket but not socket.getaddrinfo(), so
every test resolves example.com. Without working DNS in the image (e.g.
yoe-musl-sysvinit qemux86-64) all of tests/test_client.py fails.

Backport the upstream fix that uses localhost instead.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-11-06 21:27:18 -08:00

22 lines
680 B
BlitzBasic

SUMMARY = "Simple WebSocket server and client for Python"
HOMEPAGE = "https://github.com/miguelgrinberg/simple-websocket"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=9d272c9fe2437531b5bbecf4fcc82e24"
inherit pypi python_setuptools_build_meta ptest-python-pytest
SRC_URI += "file://0001-Async-test-improvements-for-Python-3.14-48.patch \
file://0002-Removed-net-access-requirement-in-client-unit-tests.patch \
"
SRC_URI[sha256sum] = "7939234e7aa067c534abdab3a9ed933ec9ce4691b0713c78acb195560aa52ae4"
RDEPENDS:${PN} += " \
python3-asyncio \
python3-io \
python3-wsproto \
"
RDEPENDS:${PN}-ptest += " \
python3-pytest-asyncio \
"