From 3950db773f803e8a2351795d0987801636bb1ab3 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 26 Nov 2025 10:35:47 +0000 Subject: [PATCH] python3Packages.mistral-common: 1.8.4 -> 1.8.5 Diff: https://github.com/mistralai/mistral-common/compare/v1.8.4...v1.8.5 Changelog: https://github.com/mistralai/mistral-common/releases/tag/v1.8.5 --- .../python-modules/mistral-common/default.nix | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mistral-common/default.nix b/pkgs/development/python-modules/mistral-common/default.nix index 305581a4ef91..2daf4cf77c13 100644 --- a/pkgs/development/python-modules/mistral-common/default.nix +++ b/pkgs/development/python-modules/mistral-common/default.nix @@ -33,14 +33,14 @@ buildPythonPackage rec { pname = "mistral-common"; - version = "1.8.4"; + version = "1.8.5"; pyproject = true; src = fetchFromGitHub { owner = "mistralai"; repo = "mistral-common"; tag = "v${version}"; - hash = "sha256-HB6dsqiDSLhjyANk7ZT/cU98mjJamegAF0uKH8GfgM8="; + hash = "sha256-k0En4QHQGzuUm6kdAyPQhbCrmwX3ay/xJ/ktCxiZIBk="; }; build-system = [ setuptools ]; @@ -58,6 +58,32 @@ buildPythonPackage rec { typing-extensions ]; + optional-dependencies = lib.fix (self: { + opencv = [ + opencv-python-headless + ]; + sentencepiece = [ + sentencepiece + ]; + soundfile = [ + soundfile + ]; + soxr = [ + soxr + ]; + audio = self.soundfile ++ self.soxr; + image = self.opencv; + hf-hub = [ + huggingface-hub + ]; + server = [ + click + fastapi + pydantic-settings + ] + ++ fastapi.optional-dependencies.standard; + }); + pythonImportsCheck = [ "mistral_common" ]; nativeCheckInputs = [