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
2 changed files with 3 additions and 5 deletions
|
@ -34,9 +34,9 @@ buildPythonPackage rec {
|
|||
export HOME=$(mktemp -d)
|
||||
mkdir -p $HOME/.config/matplotlib
|
||||
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 ${stdenv.lib.optionalString stdenv.isDarwin "--ignore=colorcet/tests/test_matplotlib.py"} colorcet
|
||||
pytest colorcet
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
|
@ -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 a new issue