diff --git a/pkgs/development/python-modules/pytest-mpl/default.nix b/pkgs/development/python-modules/pytest-mpl/default.nix index 2d146e01b3b4..23fe31faae48 100644 --- a/pkgs/development/python-modules/pytest-mpl/default.nix +++ b/pkgs/development/python-modules/pytest-mpl/default.nix @@ -47,11 +47,6 @@ buildPythonPackage rec { # https://github.com/matplotlib/pytest-mpl/pull/9 # https://github.com/matplotlib/pytest-mpl/issues/225 preCheck = '' - export HOME=$(mktemp -d) - mkdir -p $HOME/.config/matplotlib - echo "backend: ps" > $HOME/.config/matplotlib/matplotlibrc - ln -s $HOME/.config/matplotlib $HOME/.matplotlib - substituteInPlace pytest_mpl/plugin.py \ --replace-fail "DEFAULT_TOLERANCE = 2" "DEFAULT_TOLERANCE = 10" substituteInPlace tests/test_pytest_mpl.py \