From 9a6a055d2fd040cd78dda8b0e2131e8719392c16 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Wed, 7 Aug 2019 18:55:04 -0500 Subject: [PATCH] pythonPackages.colorcet: fix build on darwin --- pkgs/development/python-modules/colorcet/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/colorcet/default.nix b/pkgs/development/python-modules/colorcet/default.nix index 6a7328aaf73c..f92f8004ac00 100644 --- a/pkgs/development/python-modules/colorcet/default.nix +++ b/pkgs/development/python-modules/colorcet/default.nix @@ -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;