Skip to content

Commit

Permalink
python312Packages.pycurl: fix darwin build (#351043)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Oct 24, 2024
2 parents 0d5e426 + 7912914 commit b0e7b99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/pycurl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
buildPythonPackage,
isPyPy,
fetchPypi,
fetchpatch,
pythonOlder,
curl,
openssl,
Expand All @@ -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 = ''
Expand Down

0 comments on commit b0e7b99

Please sign in to comment.