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 <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2026-06-26 11:31:34 -04:00
commit d97307b76f
No known key found for this signature in database
GPG key ID: E13DFD4B47127951

View file

@ -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'