python3Packages.weasyprint: fix fontconfig error on darwin

This commit is contained in:
Weijia Wang 2022-12-23 01:48:09 +01:00 committed by Rick van Schijndel
parent e7fdc329d4
commit 45fb93f966

View File

@ -79,6 +79,11 @@ buildPythonPackage rec {
FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
# Fontconfig error: Cannot load default config file: No such file: (null)
makeWrapperArgs = [
"--set FONTCONFIG_FILE ${FONTCONFIG_FILE}"
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--isort --flake8 --cov --no-cov-on-fail" ""