diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index facfe3ee6859..21fe206501d7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -130,6 +130,9 @@ in { wrapPython = callPackage ../development/interpreters/python/wrap-python.nix {inherit python; inherit (pkgs) makeSetupHook makeWrapper; }; + # Dont take pythonPackages from "global" pkgs scope to avoid mixing python versions + pythonPackages = self; + # specials recursivePthLoader = callPackage ../development/python-modules/recursive-pth-loader { };