From 7dc44307515de130daf661814891d8844fdf701f Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 15 Dec 2021 14:47:51 -0500 Subject: [PATCH] python3Packages.matplotlib: switch to use an absolute path in MPLSETUPCFG The upstream made a transition setup.cfg -> mplsetup.cfg https://github.com/matplotlib/matplotlib/commit/93b5c0fb08b5426623fa3927a515eaec0aac0c36 This should allow us to be compatible with some reasonable version overrides https://github.com/NixOS/nixpkgs/pull/147742#issuecomment-995178116 --- pkgs/development/python-modules/matplotlib/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index 806576b2965e..9f47eab639bb 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -87,11 +87,7 @@ buildPythonPackage rec { }; }; - mplsetup_cfg = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); - - preBuild = '' - cp "$mplsetup_cfg" ./mplsetup.cfg - ''; + MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); # Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the # corresponding interpreter object for its library paths. This fails if