From ceba8441e1a03f60830abfd02d5aa92ed846838f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 29 Mar 2026 22:05:35 +0000 Subject: [PATCH] python3Packages.mlx-vlm: 0.3.9 -> 0.4.2, switch to finalAttrs Diff: https://github.com/Blaizzy/mlx-vlm/compare/v0.3.9...v0.4.2 Changelog: https://github.com/Blaizzy/mlx-vlm/releases/tag/v0.4.2 --- .../python-modules/mlx-vlm/default.nix | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/mlx-vlm/default.nix b/pkgs/development/python-modules/mlx-vlm/default.nix index 9a5f6d6bc133..9319be349917 100644 --- a/pkgs/development/python-modules/mlx-vlm/default.nix +++ b/pkgs/development/python-modules/mlx-vlm/default.nix @@ -9,13 +9,13 @@ # dependencies datasets, fastapi, + miniaudio, mlx, mlx-lm, numpy, opencv-python, pillow, requests, - soundfile, tqdm, transformers, uvicorn, @@ -26,35 +26,32 @@ rich, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "mlx-vlm"; - version = "0.3.9"; + version = "0.4.2"; pyproject = true; src = fetchFromGitHub { owner = "Blaizzy"; repo = "mlx-vlm"; - tag = "v${version}"; - hash = "sha256-L+llrfFo4C++JZ3GjpZi16wMZNXtKrYh3pxhZ5N1n/4="; + tag = "v${finalAttrs.version}"; + hash = "sha256-GmeMcANmztICfYR9Ca5wQfLOugOlK1mt5j3q616n6TQ="; }; build-system = [ setuptools ]; - pythonRelaxDeps = [ - "opencv-python" - ]; dependencies = [ datasets fastapi + miniaudio mlx mlx-lm numpy opencv-python pillow requests - soundfile tqdm transformers uvicorn @@ -91,11 +88,11 @@ buildPythonPackage rec { meta = { description = "Inference and fine-tuning of Vision Language Models (VLMs) on your Mac using MLX"; homepage = "https://github.com/Blaizzy/mlx-vlm"; - changelog = "https://github.com/Blaizzy/mlx-vlm/releases/tag/${src.tag}"; + changelog = "https://github.com/Blaizzy/mlx-vlm/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; platforms = [ "aarch64-darwin" ]; }; -} +})