Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 48 lines 881 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, param 5, pyct 6, nbsmoke 7, flake8 8, pytest 9, pytest-mpl 10}: 11 12buildPythonPackage rec { 13 pname = "colorcet"; 14 version = "2.0.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "ab1d16aba97f54af190631c7777c356b04b53de549672ff6b01c66d716eddff3"; 19 }; 20 21 propagatedBuildInputs = [ 22 param 23 pyct 24 ]; 25 26 checkInputs = [ 27 nbsmoke 28 pytest 29 flake8 30 pytest-mpl 31 ]; 32 33 checkPhase = '' 34 export HOME=$(mktemp -d) 35 mkdir -p $HOME/.config/matplotlib 36 echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc 37 ln -s $HOME/.config/matplotlib $HOME/.matplotlib 38 39 pytest colorcet 40 ''; 41 42 meta = with stdenv.lib; { 43 description = "Collection of perceptually uniform colormaps"; 44 homepage = https://colorcet.pyviz.org; 45 license = licenses.cc-by-40; 46 maintainers = [ maintainers.costrouc ]; 47 }; 48}