python3Packages.dufte: fix tests for darwin

This commit is contained in:
Robert Scott
2022-01-22 19:46:16 +00:00
parent 9a5d0ecdac
commit bb3add15ae

View File

@@ -28,6 +28,13 @@ buildPythonPackage rec {
importlib-metadata
];
preCheck = ''
export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
ln -s $HOME/.config/matplotlib $HOME/.matplotlib
'';
checkInputs = [
pytestCheckHook
];