Package Details: python-mistralai 2.4.5-1

Git Clone URL: https://aur.archlinux.org/python-mistralai.git (read-only, click to copy)
Package Base: python-mistralai
Description: Python Client SDK for the Mistral AI API.
Upstream URL: https://github.com/mistralai/client-python
Licenses: MIT
Submitter: wjhandley
Maintainer: wjhandley (medaminezghal)
Last Packager: wjhandley
Votes: 4
Popularity: 0.34
First Submitted: 2024-08-03 11:22 (UTC)
Last Updated: 2026-05-07 21:36 (UTC)

Latest Comments

rubin55 commented on 2026-05-12 09:29 (UTC)

Careful, I just got a notification that python-mistralai 2.4.6 is compromised, see: https://socket.dev/blog/tanstack-npm-packages-compromised-mini-shai-hulud-supply-chain-attack#All-Compromised-Packages

medaminezghal commented on 2026-04-08 10:26 (UTC)

@wjhandley Could you add me as co-maintainer?

hcartiaux commented on 2026-03-27 16:16 (UTC) (edited on 2026-03-27 16:54 (UTC) by hcartiaux)

Also add python-hatchling to the makedepends array.

diff --git a/PKGBUILD b/PKGBUILD
index 70e01ae..6b1b2f3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
 # Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
 pkgname=python-mistralai
 _name=${pkgname#python-}
-pkgver=1.12.4
+pkgver=2.1.3
 pkgrel=1
 pkgdesc="You can use the Mistral Python client to interact with the Mistral AI API."
 arch=(any)
 url="https://github.com/mistralai/client-python"
 license=(MIT)
 groups=()
-depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-invoke python-opentelemetry-api python-opentelemetry-sdk python-opentelemetry-exporter-otlp-proto-http python-yaml)
+depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-opentelemetry-api python-opentelemetry-semantic-conventions)
 optdepends=('python-google-auth: gcp' 'python-requests: gcp' 'python-mcp: agents' 'python-griffe: agents' 'python-authlib: agents' 'python-websockets: realtime')
-makedepends=(python-poetry-core python-build python-installer python-wheel)
+makedepends=(python-invoke python-yaml python-poetry-core python-build python-installer python-wheel python-opentelemetry-sdk python-hatchling)
 provides=()
 conflicts=()
 replaces=()
@@ -18,7 +18,7 @@ backup=()
 options=(!emptydirs)
 install=
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('e52b53bab58025dcd208eeac13e3c3df5778d4112eeca1f08124096c7738929f')
+sha256sums=('0c5de4855b043cd0582406d5c1ddfd91e176f484a158e6ee0b4a0054231be266')

 build() {
     cd "$srcdir/$_name-$pkgver"

rubin55 commented on 2026-03-16 19:10 (UTC)

I went through the pyproject.toml differences between 1.12.4 and 2.0.4 and created a diff for you:

diff --git a/PKGBUILD b/PKGBUILD
index 70e01ae..090e2a6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,16 +1,16 @@
 # Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
 pkgname=python-mistralai
 _name=${pkgname#python-}
-pkgver=1.12.4
+pkgver=2.0.4
 pkgrel=1
 pkgdesc="You can use the Mistral Python client to interact with the Mistral AI API."
 arch=(any)
 url="https://github.com/mistralai/client-python"
 license=(MIT)
 groups=()
-depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-invoke python-opentelemetry-api python-opentelemetry-sdk python-opentelemetry-exporter-otlp-proto-http python-yaml)
+depends=(python-pydantic python-eval-type-backport python-dateutil python-typing-inspection python-httpx python-opentelemetry-api python-opentelemetry-semantic-conventions)
 optdepends=('python-google-auth: gcp' 'python-requests: gcp' 'python-mcp: agents' 'python-griffe: agents' 'python-authlib: agents' 'python-websockets: realtime')
-makedepends=(python-poetry-core python-build python-installer python-wheel)
+makedepends=(python-invoke python-yaml python-poetry-core python-build python-installer python-wheel python-opentelemetry-sdk )
 provides=()
 conflicts=()
 replaces=()
@@ -18,7 +18,7 @@ backup=()
 options=(!emptydirs)
 install=
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
-sha256sums=('e52b53bab58025dcd208eeac13e3c3df5778d4112eeca1f08124096c7738929f')
+sha256sums=('aba985459f63e80e9a1bec3287721f714cbd9633bf87179096aed0c951763ba2')

 build() {
     cd "$srcdir/$_name-$pkgver"

This update is particularly important to me because mistral-vibe 2.5.0, which I maintain, depends on this later version of python-mistralai.

medaminezghal commented on 2025-06-26 09:26 (UTC)

@wjhandley python-httpx should be a dependency of mistralai

medaminezghal commented on 2025-06-26 06:18 (UTC)

@wjhandley you can remove python-orjson and python-eval-type-backport from dependencies and edit optdepends to be: optdepends=('python-google-auth: gcp' 'python-requests: gcp' 'python-mcp: agents' 'python-griffe: agents' 'python-authlib: agents')

and makedepends to be: makedepends=('python-poetry-core' 'python-build' 'python-installer' 'python-wheel')

and please remove provides=(lsbi) from PKGBUILD file

medaminezghal commented on 2025-03-25 13:43 (UTC)

@wjhandley The version 1.6.0 has been released. You need to update some dependencies (removing python-jsonpath-python, movine python-google-auth and python-requests to optional) and please add the url https://github.com/mistralai/client-python

medaminezghal commented on 2025-02-20 11:17 (UTC)

@wjhandley the dependency should be 'python-requests' not 'python-request'

medaminezghal commented on 2025-02-19 06:18 (UTC)

@wjhandley a new version has been published 1.5.0 and you need to update its dependencies.