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 ];