pythonPackages.pytest-mpl: fix & enable tests on darwin
dotfile is simply in a different place on macos
This commit is contained in:
parent
daebef59d6
commit
5e0ec5a753
@ -26,13 +26,11 @@ buildPythonPackage rec {
|
||||
pytest
|
||||
];
|
||||
|
||||
# disable tests on darwin, because it requires a framework build of Python
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
checkPhase = ''
|
||||
export HOME=$(mktemp -d)
|
||||
mkdir -p $HOME/.config/matplotlib
|
||||
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
|
||||
ln -s $HOME/.config/matplotlib $HOME/.matplotlib
|
||||
|
||||
pytest
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user