From 9dea22dd33dca2b4b1d645dfae9a0c39fbcdd42d Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Sat, 29 Nov 2025 11:15:25 -0800 Subject: [PATCH] python3Packages.gguf: exclude optional sentencepiece on Darwin Revert this once sentencepiece is fixed, see https://github.com/NixOS/nixpkgs/issues/466092 --- pkgs/development/python-modules/gguf/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/gguf/default.nix b/pkgs/development/python-modules/gguf/default.nix index 4bddf387d180..15b619f8374d 100644 --- a/pkgs/development/python-modules/gguf/default.nix +++ b/pkgs/development/python-modules/gguf/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, @@ -37,8 +38,12 @@ buildPythonPackage rec { numpy pyside6 pyyaml - sentencepiece tqdm + ] + # Sentencepiece is optional and its inclusion crashes darwin + # See https://github.com/NixOS/nixpkgs/issues/466092 + ++ lib.optionals stdenv.hostPlatform.isLinux [ + sentencepiece ]; nativeCheckInputs = [ pytestCheckHook ];