nixpkgs/pkgs/development/python-modules/colorcet/default.nix
R. RyanTM 6fd2133ac5 python37Packages.colorcet: 2.0.1 -> 2.0.2
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-colorcet/versions
2019-10-07 21:05:32 -07:00

49 lines
869 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, param
, pyct
, nbsmoke
, flake8
, pytest
, pytest-mpl
}:
buildPythonPackage rec {
pname = "colorcet";
version = "2.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "1vkx00im4s6zhr2m1j9r0a5vmhkl488b4xpzxb1pidbl19wi6j2i";
};
propagatedBuildInputs = [
param
pyct
];
checkInputs = [
nbsmoke
pytest
flake8
pytest-mpl
];
checkPhase = ''
export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
ln -s $HOME/.config/matplotlib $HOME/.matplotlib
pytest colorcet
'';
meta = with stdenv.lib; {
description = "Collection of perceptually uniform colormaps";
homepage = https://colorcet.pyviz.org;
license = licenses.cc-by-40;
maintainers = [ maintainers.costrouc ];
};
}