From d1d81193d5777b653b7af5dfc3195330ce925ca4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 17 Jan 2026 10:14:57 +0000 Subject: [PATCH] python3Packages.mistralai: use finalAttrs pattern --- pkgs/development/python-modules/mistralai/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/mistralai/default.nix b/pkgs/development/python-modules/mistralai/default.nix index 9af13cc9e469..6abc437a4160 100644 --- a/pkgs/development/python-modules/mistralai/default.nix +++ b/pkgs/development/python-modules/mistralai/default.nix @@ -9,6 +9,7 @@ # dependencies eval-type-backport, httpx, + httpcore, invoke, opentelemetry-api, opentelemetry-exporter-otlp-proto-http, @@ -30,7 +31,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mistralai"; version = "1.10.1"; pyproject = true; @@ -38,7 +39,7 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "mistralai"; repo = "client-python"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-y1et8Ez5TAge0kk/a9fA1zcgPStYf+6aO19OLhMGk/8="; }; @@ -89,11 +90,11 @@ buildPythonPackage rec { meta = { description = "Python client library for Mistral AI platform"; homepage = "https://github.com/mistralai/client-python"; - changelog = "https://github.com/mistralai/client-python/blob/${src.tag}/RELEASES.md"; + changelog = "https://github.com/mistralai/client-python/blob/${finalAttrs.src.tag}/RELEASES.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage mana-byte ]; }; -} +})