pythonPackages.pytest-mpl: fix & enable tests on darwin

dotfile is simply in a different place on macos
This commit is contained in:
Robert Scott 2019-09-07 12:53:22 +01:00
parent daebef59d6
commit 5e0ec5a753

View File

@ -26,13 +26,11 @@ buildPythonPackage rec {
pytest pytest
]; ];
# disable tests on darwin, because it requires a framework build of Python
doCheck = !stdenv.isDarwin;
checkPhase = '' checkPhase = ''
export HOME=$(mktemp -d) export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
ln -s $HOME/.config/matplotlib $HOME/.matplotlib
pytest pytest
''; '';