mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-26 10:30:32 +00:00
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>
(cherry picked from commit d97307b76f)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user