From e32b9fce64f7051979ca9078d5ac276383c0cf9e Mon Sep 17 00:00:00 2001 From: p0lyw0lf Date: Wed, 21 May 2025 21:01:02 -0400 Subject: [PATCH] python313Packages.sanic: 24.12.0 -> 25.3.0 --- pkgs/development/python-modules/sanic/default.nix | 8 ++------ .../sanic/websockets-14.2-compat.patch | 13 ------------- 2 files changed, 2 insertions(+), 19 deletions(-) delete mode 100644 pkgs/development/python-modules/sanic/websockets-14.2-compat.patch diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index b794cd283159..4b429d529a29 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -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 = [ diff --git a/pkgs/development/python-modules/sanic/websockets-14.2-compat.patch b/pkgs/development/python-modules/sanic/websockets-14.2-compat.patch deleted file mode 100644 index 9acf47757335..000000000000 --- a/pkgs/development/python-modules/sanic/websockets-14.2-compat.patch +++ /dev/null @@ -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)