1{ lib 2, buildPythonPackage 3, fetchPypi 4, param 5, pyct 6, pytest-mpl 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "colorcet"; 12 version = "3.0.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "21c522346a7aa81a603729f2996c22ac3f7822f4c8c303c59761e27d2dfcf3db"; 17 }; 18 19 propagatedBuildInputs = [ 20 param 21 pyct 22 ]; 23 24 checkInputs = [ 25 pytest-mpl 26 pytestCheckHook 27 ]; 28 29 preCheck = '' 30 export HOME=$(mktemp -d) 31 mkdir -p $HOME/.config/matplotlib 32 echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc 33 ln -s $HOME/.config/matplotlib $HOME/.matplotlib 34 ''; 35 36 disabledTests = [ 37 "matplotlib_default_colormap_plot" 38 ]; 39 40 pythonImportsCheck = [ 41 "colorcet" 42 ]; 43 44 meta = with lib; { 45 description = "Collection of perceptually uniform colormaps"; 46 homepage = "https://colorcet.pyviz.org"; 47 license = licenses.cc-by-40; 48 maintainers = with maintainers; [ costrouc ]; 49 }; 50}