From 8a5a55abe642392b88fb72141dfbfa877d314d6f Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Fri, 26 Jun 2026 11:31:34 -0400 Subject: [PATCH] python3Packages.pycurl: add support for curl 8.21.0 websockets Backport of https://github.com/pycurl/pycurl/pull/1028 Seems like a new release of pycurl is also imminent, which means we may be able to drop this patch soon. Signed-off-by: Sefa Eyeoglu (cherry picked from commit d97307b76f4898528c59c895e86412d9607a9436) --- pkgs/development/python-modules/pycurl/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/pycurl/default.nix b/pkgs/development/python-modules/pycurl/default.nix index c9fd2a8d43f2..c7c32e9e20d3 100644 --- a/pkgs/development/python-modules/pycurl/default.nix +++ b/pkgs/development/python-modules/pycurl/default.nix @@ -4,6 +4,7 @@ buildPythonPackage, isPyPy, fetchFromGitHub, + fetchpatch2, curl, openssl, bottle, @@ -29,6 +30,14 @@ buildPythonPackage rec { hash = "sha256-F40bJ7TYFK2dVkDJGGxl7XV46fKmjwvUYYulcwGL6hk="; }; + patches = [ + (fetchpatch2 { + name = "pycurl-curl-8.21.0-ws-support.patch"; + url = "https://github.com/pycurl/pycurl/commit/c78fd8aba82e2f8037275063138eaa7706c111af.diff?full_index=1"; + hash = "sha256-EBXgGiaMtXTsgJOOrzzZFJ7Q/ofAlc4zuipoEpfdFqU="; + }) + ]; + preConfigure = '' substituteInPlace setup.py \ --replace-fail '--static-libs' '--libs'