python310Packages.matplotlib 3.7.1 -> 3.7.2 https://repology.org/project/python:matplotlib/versions attrpath: python310Packages.matplotlib Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/bci9vp4xmkzklpwzp931i0p5c1wg1kb8-packages.json.drv building '/nix/store/bci9vp4xmkzklpwzp931i0p5c1wg1kb8-packages.json.drv'... Going to be running update for following packages: - python3.10-matplotlib-3.7.1 Press Enter key to continue... Running update for: - python3.10-matplotlib-3.7.1: UPDATING ... - python3.10-matplotlib-3.7.1: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index dbc8c1da31d..01033983d4b 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -76,7 +76,7 @@ let in buildPythonPackage rec { - version = "3.7.1"; + version = "3.7.2"; pname = "matplotlib"; format = "pyproject"; @@ -84,7 +84,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-e3MwXyXqtFQb1+4Llth+U66cnxgjvlZZuAbNhXhv6II="; + hash = "sha256-qM25Hd2wRDa9LwmLj99LgTUuaM9NLGdW/MQUeRB2Vps="; }; env.XDG_RUNTIME_DIR = "/tmp"; No auto update branch exists Old version 3.7.1" not present in staging derivation file with contents: { lib , stdenv , fetchPypi , writeText , buildPythonPackage , isPyPy , pythonOlder # https://github.com/matplotlib/matplotlib/blob/main/doc/devel/dependencies.rst # build-system , pkg-config , pybind11 , setuptools , setuptools-scm # native libraries , ffmpeg-headless , freetype , qhull # propagates , contourpy , cycler , fonttools , kiwisolver , numpy , packaging , pillow , pyparsing , python-dateutil # optional , importlib-resources # GTK3 , enableGtk3 ? false , cairo , gobject-introspection , gtk3 , pycairo , pygobject3 # Tk # Darwin has its own "MacOSX" backend, PyPy has tkagg backend and does not support tkinter , enableTk ? (!stdenv.isDarwin && !isPyPy) , tcl , tk , tkinter # Ghostscript , enableGhostscript ? true , ghostscript # Qt , enableQt ? false , pyqt5 # Webagg , enableWebagg ? false , tornado # nbagg , enableNbagg ? false , ipykernel # darwin , Cocoa # required for headless detection , libX11 , wayland }: let interactive = enableTk || enableGtk3 || enableQt; in buildPythonPackage rec { version = "3.7.2"; pname = "matplotlib"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-qM25Hd2wRDa9LwmLj99LgTUuaM9NLGdW/MQUeRB2Vps="; }; env.XDG_RUNTIME_DIR = "/tmp"; # Matplotlib tries to find Tcl/Tk by opening a Tk window and asking the # corresponding interpreter object for its library paths. This fails if # `$DISPLAY` is not set. The fallback option assumes that Tcl/Tk are both # installed under the same path which is not true in Nix. # With the following patch we just hard-code these paths into the install # script. postPatch = let tcl_tk_cache = ''"${tk}/lib", "${tcl}/lib", "${lib.strings.substring 0 3 tk.version}"''; in lib.optionalString enableTk '' sed -i '/self.tcl_tk_cache = None/s|None|${tcl_tk_cache}|' setupext.py '' + lib.optionalString (stdenv.isLinux && interactive) '' # fix paths to libraries in dlopen calls (headless detection) substituteInPlace src/_c_internal_utils.c \ --replace libX11.so.6 ${libX11}/lib/libX11.so.6 \ --replace libwayland-client.so.0 ${wayland}/lib/libwayland-client.so.0 '' + # bring our own system libraries # https://github.com/matplotlib/matplotlib/blob/main/doc/devel/dependencies.rst#c-libraries '' echo "[libs] system_freetype=true system_qhull=true" > mplsetup.cfg ''; nativeBuildInputs = [ pkg-config pybind11 setuptools setuptools-scm numpy ]; buildInputs = [ ffmpeg-headless freetype qhull ] ++ lib.optionals enableGhostscript [ ghostscript ] ++ lib.optionals enableGtk3 [ cairo gobject-introspection gtk3 ] ++ lib.optionals enableTk [ libX11 tcl tk ] ++ lib.optionals stdenv.isDarwin [ Cocoa ]; # clang-11: error: argument unused during compilation: '-fno-strict-overflow' [-Werror,-Wunused-command-line-argument] hardeningDisable = lib.optionals stdenv.isDarwin [ "strictoverflow" ]; propagatedBuildInputs = [ # explicit contourpy cycler fonttools kiwisolver numpy packaging pillow pyparsing python-dateutil ] ++ lib.optionals (pythonOlder "3.10") [ importlib-resources ] ++ lib.optionals enableGtk3 [ pycairo pygobject3 ] ++ lib.optionals enableQt [ pyqt5 ] ++ lib.optionals enableWebagg [ tornado ] ++ lib.optionals enableNbagg [ ipykernel ] ++ lib.optionals enableTk [ tkinter ]; passthru.config = { directories = { basedirlist = "."; }; libs = { system_freetype = true; system_qhull = true; } // lib.optionalAttrs stdenv.isDarwin { # LTO not working in darwin stdenv, see #19312 enable_lto = false; }; }; env.MPLSETUPCFG = writeText "mplsetup.cfg" (lib.generators.toINI {} passthru.config); # Matplotlib needs to be built against a specific version of freetype in # order for all of the tests to pass. doCheck = false; meta = with lib; { description = "Python plotting library, making publication quality plots"; homepage = "https://matplotlib.org/"; changelog = "https://github.com/matplotlib/matplotlib/releases/tag/v${version}"; license = with licenses; [ psfl bsd0 ]; maintainers = with maintainers; [ lovek323 veprbl ]; }; }