Skip to content

Fix #129 (caused by matplotlib 3.11 deprecating mpl.style.core)#130

Open
razimantv wants to merge 1 commit into
catppuccin:mainfrom
razimantv:main
Open

Fix #129 (caused by matplotlib 3.11 deprecating mpl.style.core)#130
razimantv wants to merge 1 commit into
catppuccin:mainfrom
razimantv:main

Conversation

@razimantv

Copy link
Copy Markdown

Solves the problem by direct implementation: Read the files and update mpl.style.library directly:

def _register_styles() -> None:
    """Register the included stylesheets in the mpl style library."""
    for path in Path(CATPPUCCIN_STYLE_DIRECTORY).glob(f"*.mplstyle"):
        stylename = path.stem
        style = rc_params_from_file(path, use_default_template=False)
        mpl.style.library.setdefault(stylename, {}).update(style)

@umbrageodotus

Copy link
Copy Markdown

Please merge asap 😭

patflynn added a commit to patflynn/cosmo that referenced this pull request Jul 12, 2026
)

python3.14-catppuccin-2.5.0 (dependency of catppuccin-gtk, used for GTK
theming) fails its check phase: matplotlib 3.11 removed mpl.style.core,
which catppuccin 2.5.0's matplotlib extra still calls
(catppuccin/python#129). This broke every desktop host's system build
and blocked all deploys on classic-laddie.

Mirror the two nixpkgs-master fixes that are not yet on the pinned
nixos-unstable channel via an overlay in modules/common/desktop.nix:

- 455d916d0c python3Packages.catppuccin: fix build with matplotlib
  3.11+ (patch from catppuccin/python#130)
- 894acc94f6 catppuccin-gtk: fix build with python314+

Remove the overlay once the nixpkgs pin includes both commits; the
daily flake.lock update should bring them within days.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants