python3.pkgs.scipy: set HOME to a writeable directory

Seems to be required for aarch64-darwin, but doesn't hurt any other
platform to have this.
This commit is contained in:
Doron Behar 2023-08-01 17:25:34 +03:00
parent 01e53f7065
commit d61583bbc8

View File

@ -113,7 +113,7 @@ in buildPythonPackage {
# library where these files are cached. See also:
# https://github.com/scipy/scipy/pull/18518#issuecomment-1562350648 And at:
# https://github.com/scipy/scipy/pull/17965#issuecomment-1560759962
export XDG_CACHE_HOME=$PWD; mkdir scipy-data
export XDG_CACHE_HOME=$PWD; export HOME=$(mktemp -d); mkdir scipy-data
'' + (lib.concatStringsSep "\n" (lib.mapAttrsToList (d: dpath:
# Actually copy the datasets
"cp ${dpath} scipy-data/${d}.dat"