diff --git a/pkgs/development/python-modules/mistral-common/default.nix b/pkgs/development/python-modules/mistral-common/default.nix index 97298dbabd13..e5dfd4073369 100644 --- a/pkgs/development/python-modules/mistral-common/default.nix +++ b/pkgs/development/python-modules/mistral-common/default.nix @@ -24,6 +24,7 @@ llguidance, opencv-python-headless, pydantic-settings, + pytest-xdist, pytestCheckHook, sentencepiece, soundfile, @@ -38,14 +39,15 @@ buildPythonPackage (finalAttrs: { pname = "mistral-common"; - version = "1.11.7"; + version = "1.12.0"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "mistralai"; repo = "mistral-common"; tag = "v${finalAttrs.version}"; - hash = "sha256-yYJBWnHxv/0BLGvi2MjcQvRhNjR5F8tdAy2f7q9hEJg="; + hash = "sha256-XrSlPG7t1BJ+kcoMlZMwVRnKfNS656GlnatebgapRMY="; }; build-system = [ @@ -111,6 +113,7 @@ buildPythonPackage (finalAttrs: { nativeCheckInputs = [ openai pycountry + pytest-xdist pytestCheckHook uvicorn ] @@ -119,12 +122,15 @@ buildPythonPackage (finalAttrs: { disabledTests = [ # AssertionError, Extra items in the right set "test_openai_chat_fields" + + # AssertionError: assert 0.028677442591911916 < 0.005 + "test_audio_base64" ]; meta = { description = "Tools to help you work with Mistral models"; homepage = "https://github.com/mistralai/mistral-common"; - changelog = "https://github.com/mistralai/mistral-common/releases/tag/v${finalAttrs.version}"; + changelog = "https://github.com/mistralai/mistral-common/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bgamari ]; };