diff --git a/pkgs/development/python-modules/generic/wrap.sh b/pkgs/development/python-modules/generic/wrap.sh index 71269945d6f4..d42be1469552 100644 --- a/pkgs/development/python-modules/generic/wrap.sh +++ b/pkgs/development/python-modules/generic/wrap.sh @@ -51,6 +51,9 @@ createBuildInputsPth() { local inputs="$2" if [ foo"$inputs" != foo ]; then for x in $inputs; do + if $(echo -n $x |grep -q python-recursive-pth-loader); then + continue + fi if test -d "$x"/lib/@libPrefix@/site-packages; then echo $x/lib/@libPrefix@/site-packages \ >> "$out"/lib/@libPrefix@/site-packages/${name}-nix-python-$category.pth