3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.colorcet: init at 0.10

This commit is contained in:
Chris Ostrouchov 2019-07-14 17:31:28 -04:00 committed by Frederik Rietdijk
parent 029ef744a8
commit 36dc1d4fe6
3 changed files with 43 additions and 0 deletions

View file

@ -31,6 +31,10 @@ buildPythonPackage rec {
];
checkPhase = ''
export HOME=$(mktemp -d)
mkdir -p $HOME/.config/matplotlib
echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc
pytest colorcet
'';

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, matplotlib
, nose
}:
buildPythonPackage rec {
pname = "pytest-mpl";
version = "0.10";
src = fetchPypi {
inherit pname version;
sha256 = "7006e63bf1ca9c50bea3d189c0f862751a16ce40bb373197b218f57af5b837c0";
};
propagatedBuildInputs = [
matplotlib
nose
];
checkInputs = [
pytest
];
checkPhase = ''
pytest
'';
meta = with lib; {
description = "pytest plugin to help with testing figures output from Matplotlib";
homepage = https://github.com/matplotlib/pytest-mpl;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
};
}

View file

@ -1917,6 +1917,8 @@ in {
pytest-isort = callPackage ../development/python-modules/pytest-isort { };
pytest-mpl = callPackage ../development/python-modules/pytest-mpl { };
pytest-mock = callPackage ../development/python-modules/pytest-mock { };
pytest-timeout = callPackage ../development/python-modules/pytest-timeout { };