Unverified Commit a866f627 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python3Packages.mistral-common: 1.8.4 -> 1.8.5 (#465215)

parents cf80e3b2 3950db77
Loading
Loading
Loading
Loading
+28 −2
Original line number Diff line number Diff line
@@ -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 = [