python313Packages.sanic: 24.12.0 -> 25.3.0 (#409599)

This commit is contained in:
Atemu
2025-05-25 10:40:38 +02:00
committed by GitHub
2 changed files with 2 additions and 19 deletions
@@ -5,7 +5,6 @@
aioquic,
beautifulsoup4,
buildPythonPackage,
cacert,
fetchFromGitHub,
gunicorn,
html5tagger,
@@ -27,7 +26,7 @@
buildPythonPackage rec {
pname = "sanic";
version = "24.12.0";
version = "25.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
@@ -36,12 +35,9 @@ buildPythonPackage rec {
owner = "sanic-org";
repo = "sanic";
tag = "v${version}";
hash = "sha256-17Nr0iNeZC1sHm0JETIufdMVqrhORts1WxCh8cukCKg=";
hash = "sha256-tucLXWYPpALQrPYf+aiovKHYf2iouu6jezvNdukEu9w=";
};
# https://github.com/sanic-org/sanic/issues/3031
patches = [ ./websockets-14.2-compat.patch ];
build-system = [ setuptools ];
dependencies = [
@@ -1,13 +0,0 @@
diff --git a/sanic/server/protocols/websocket_protocol.py b/sanic/server/protocols/websocket_protocol.py
index beee1d26..5a3e70f2 100644
--- a/sanic/server/protocols/websocket_protocol.py
+++ b/sanic/server/protocols/websocket_protocol.py
@@ -147,7 +147,7 @@ class WebSocketProtocol(HttpProtocol):
"".join([f"{k}: {v}\r\n" for k, v in resp.headers.items()])
).encode()
rbody += b"\r\n"
- if resp.body is not None:
+ if resp.body:
rbody += resp.body
rbody += b"\r\n\r\n"
await super().send(rbody)