Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 934 B view raw
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.1"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-UUVaIDU9EvrJH5U3cthAnyR05qDbGvP6T3AF9AWiSAs="; 17 }; 18 19 propagatedBuildInputs = [ 20 param 21 pyct 22 ]; 23 24 nativeCheckInputs = [ 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}