From efbdcbbc88ddff67a37a4329baa2a9b8f83090ea Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sat, 13 Dec 2025 19:20:52 -0500 Subject: [PATCH] Revert "python3Packages.mistral-common: disable sentencepiece dependency on Darwin" This reverts commit fd48e3904253eeed351d19e08d42505bf43eac6b. --- .../python-modules/mistral-common/default.nix | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/mistral-common/default.nix b/pkgs/development/python-modules/mistral-common/default.nix index ca5151b94c62..08f977f055a9 100644 --- a/pkgs/development/python-modules/mistral-common/default.nix +++ b/pkgs/development/python-modules/mistral-common/default.nix @@ -1,6 +1,5 @@ { lib, - stdenv, buildPythonPackage, fetchFromGitHub, @@ -62,8 +61,7 @@ buildPythonPackage rec { opencv = [ opencv-python-headless ]; - # Broken on Darwin. See https://github.com/NixOS/nixpkgs/issues/466092 - sentencepiece = lib.optionals (!stdenv.hostPlatform.isDarwin) [ + sentencepiece = [ sentencepiece ]; soundfile = [ @@ -99,7 +97,7 @@ buildPythonPackage rec { soxr uvicorn ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.flatten (lib.attrValues optional-dependencies); disabledTests = [ # Require internet @@ -114,20 +112,6 @@ buildPythonPackage rec { "test_openai_chat_fields" ]; - # Requires sentencepiece which segfaults when initialized on Darwin - # See https://github.com/NixOS/nixpkgs/issues/466092 - disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [ - "tests/experimental/test_app.py" - "tests/experimental/test_tools.py" - "tests/test_fim_tokenizer.py" - "tests/test_integration_samples.py" - "tests/test_mistral_tokenizer.py" - "tests/test_tokenize_v1.py" - "tests/test_tokenize_v2.py" - "tests/test_tokenize_v3.py" - "tests/test_tokenizer_v7.py" - ]; - meta = { description = "Tools to help you work with Mistral models"; homepage = "https://github.com/mistralai/mistral-common";