From 4a21c155c99fd131b13a8f72acd94b61fa49930e Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 29 Nov 2025 11:47:42 -0800 Subject: [PATCH] python3Packages.torchtune: disable on Darwin due to sentencepiece bug --- pkgs/development/python-modules/torchtune/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/torchtune/default.nix b/pkgs/development/python-modules/torchtune/default.nix index d205aa25f51d..b086be9d1f53 100644 --- a/pkgs/development/python-modules/torchtune/default.nix +++ b/pkgs/development/python-modules/torchtune/default.nix @@ -119,5 +119,10 @@ buildPythonPackage rec { changelog = "https://github.com/meta-pytorch/torchtune/releases/tag/${src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ GaetanLepage ]; + badPlatforms = [ + # sentencepiece 0.21.0 segfaults when initialized on Darwin + # See https://github.com/NixOS/nixpkgs/issues/466092 + lib.systems.inspect.patterns.isDarwin + ]; }; }