Merge pull request #68260 from risicle/ris-colorcet-pytest-mpl-darwin-tests
pythonPackages.{colorcet,pytest-mpl}: fix & re-enable all tests on darwin
This commit is contained in:
commit
925501a5d5
@ -34,9 +34,9 @@ buildPythonPackage rec {
|
|||||||
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
|
||||||
|
|
||||||
# disable matplotlib tests on darwin, because it requires a framework build of Python
|
pytest colorcet
|
||||||
pytest ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=colorcet/tests/test_matplotlib.py"} colorcet
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -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
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user