python3Packages.pygal: fix darwin sandbox build

This commit is contained in:
Olivér Falvai
2025-03-12 18:08:40 +01:00
parent 9eefabc0dc
commit 4922d9acc6
@@ -56,6 +56,10 @@ buildPythonPackage rec {
export LANG=en_US.UTF-8
'';
# Cairo tries to load system fonts by default.
# It's surfaced as a Cairo "out of memory" error in tests.
__impureHostDeps = [ "/System/Library/Fonts" ];
postCheck = ''
export LANG=${if stdenv.isDarwin then "en_US.UTF-8" else "C.UTF-8"}
'';