From 2e43211db3b07c06c4a957d723947f5d0aa8977f Mon Sep 17 00:00:00 2001 From: natsukium Date: Fri, 4 Oct 2024 12:32:31 +0900 Subject: [PATCH] python312Packages.pytest-mpl: fix Segmentation fault remove unnecessary preCheck setup --- pkgs/development/python-modules/pytest-mpl/default.nix | 5 ----- 1 file changed, 5 deletions(-) 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 \