blob: d86647b7503a1c67d97264f89af995726c6fab2c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, matplotlib
, nose
, pillow
}:
buildPythonPackage rec {
pname = "pytest-mpl";
version = "0.11";
src = fetchPypi {
inherit pname version;
sha256 = "26c5a47a8fdbc04652f18b65c587da642c6cc0354680ee44b16c161d9800a2ce";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [
matplotlib
nose
pillow
];
checkInputs = [
pytest
];
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
'';
meta = with stdenv.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 ];
};
}
|