From 561bc25fa450073b634ea82cfae25d70e1e2ef8d Mon Sep 17 00:00:00 2001 From: Nikola Knezevic Date: Fri, 17 Dec 2021 23:09:19 +0100 Subject: [PATCH] fix: Python 3.10 doesn't need ctypes.util.find_library() patch This patch is only needed on Python 3.9 version, as it is included in 3.10.0 release. --- pkgs/development/interpreters/python/cpython/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index bcfe2b8cd965..da585308a00f 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -240,6 +240,7 @@ in with passthru; stdenv.mkDerivation { ] ++ optionals (pythonAtLeast "3.9" && stdenv.isDarwin) [ # Stop checking for TCL/TK in global macOS locations ./3.9/darwin-tcl-tk.patch + ] ++ optionals (isPy39 && stdenv.isDarwin) [ # ctypes.util.find_library() now finds macOS 11+ system libraries when built on older macOS systems # https://github.com/python/cpython/pull/28053 ./3.9/bpo-44689-ctypes.util.find_library-now-finds-macOS-1.patch