python3Packages.hbmqtt: patch for websockets 9.0 compat

This commit is contained in:
Martin Weinelt
2021-06-20 21:07:26 +02:00
parent 53338e3402
commit 77c5302d1c

View File

@@ -18,6 +18,10 @@ buildPythonPackage rec {
];
postPatch = ''
# https://github.com/beerfactory/hbmqtt/pull/241
substituteInPlace hbmqtt/adapters.py \
--replace "websockets.protocol" "websockets.legacy.protocol"
# test tries to bind same port multiple times and fails
rm tests/test_client.py
'';