pythonPackages.colorcet: fix build on darwin

This commit is contained in:
Mario Rodas
2019-08-07 18:55:04 -05:00
parent e505a8eee0
commit 9a6a055d2f

View File

@@ -1,4 +1,4 @@
{ lib
{ stdenv
, buildPythonPackage
, fetchPypi
, param
@@ -35,10 +35,11 @@ buildPythonPackage rec {
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
pytest colorcet
# 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
'';
meta = with lib; {
meta = with stdenv.lib; {
description = "Collection of perceptually uniform colormaps";
homepage = https://colorcet.pyviz.org;
license = licenses.cc-by-40;