python3Packages.corner: fix arviz import by making HOME writable

This commit is contained in:
Gaetan Lepage
2025-12-20 09:52:01 +00:00
parent 5a3e70c9de
commit c7df315b05
@@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
writableTmpDirAsHomeHook,
# build-system
hatch-vcs,
@@ -37,6 +38,13 @@ buildPythonPackage rec {
hash = "sha256-gK2yylteI3VLVJ0p7NB7bR7cirCo2BvFKnYIH3kfyh4=";
};
nativeBuildInputs = [
# During `pythonImportsCheck`, `corner` imports `arviz` which wants to write a stamp file to the
# homedir. It then needs to be writable.
# https://github.com/arviz-devs/arviz/commit/4db612908f588d89bb5bfb6b83a08ada3d54fd02
writableTmpDirAsHomeHook
];
build-system = [
hatch-vcs
hatchling