python312Packages.pycurl: fix darwin build (#351043)

This commit is contained in:
Emily 2024-10-24 23:53:56 +01:00 committed by GitHub
commit b0e7b99a77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,6 +4,7 @@
buildPythonPackage,
isPyPy,
fetchPypi,
fetchpatch,
pythonOlder,
curl,
openssl,
@ -25,6 +26,16 @@ buildPythonPackage rec {
hash = "sha256-jCRxr5B5rXmOFkXsCw09QiPbaHN50X3TanBjdEn4HWs=";
};
patches = [
# Don't use -flat_namespace on macOS
# https://github.com/pycurl/pycurl/pull/855 remove on next update
(fetchpatch {
name = "no_flat_namespace.patch";
url = "https://github.com/pycurl/pycurl/commit/7deb85e24981e23258ea411dcc79ca9b527a297d.patch";
hash = "sha256-tk0PQy3cHyXxFnoVYNQV+KD/07i7AUYHNJnrw6H8tHk=";
})
];
__darwinAllowLocalNetworking = true;
preConfigure = ''