From 124d108d7d81aeb18053bc0315182e7889ee7148 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Jul 2019 08:00:08 -0400 Subject: [PATCH] pythonPackages.pytest-mpl: refactor fix broken python 2 test --- pkgs/development/python-modules/pytest-mpl/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytest-mpl/default.nix b/pkgs/development/python-modules/pytest-mpl/default.nix index c3bd4c59f049..0baaa9c5dfca 100644 --- a/pkgs/development/python-modules/pytest-mpl/default.nix +++ b/pkgs/development/python-modules/pytest-mpl/default.nix @@ -25,11 +25,15 @@ buildPythonPackage rec { ]; checkPhase = '' + export HOME=$(mktemp -d) + mkdir -p $HOME/.config/matplotlib + echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc + pytest ''; meta = with lib; { - description = "pytest plugin to help with testing figures output from Matplotlib"; + description = "Pytest plugin to help with testing figures output from Matplotlib"; homepage = https://github.com/matplotlib/pytest-mpl; license = licenses.bsd3; maintainers = [ maintainers.costrouc ];