Homebrew formula reinstalls a stale mlx-audio (0.4.3) over the pyproject pin (0.4.8): `pip check` fails with "mlx-vlm 0.7.1 has requirement mlx-audio>=0.4.8"
Environment
- oMLX
0.7.0rc1viabrew upgrade jundot/omlx/omlx(tap at3f2d07e8, "formula: bump to 0.7.0rc1"). The formula is unchanged at HEAD as of 2026-09-25. - Homebrew 7.0.4, macOS 27.0, Apple M4 Max,
[email protected]3.11.16. Default build, no options.
Steps to reproduce
brew upgrade jundot/omlx/omlx(or a freshbrew install) to0.7.0rc1./opt/homebrew/Cellar/omlx/0.7.0rc1/libexec/bin/python -m pip check/opt/homebrew/Cellar/omlx/0.7.0rc1/libexec/bin/python -m pip list | grep -E '^mlx-(audio|vlm) '
Expected behavior
No broken requirements found., with mlx-audio 0.4.8. pyproject.toml at v0.7.0rc1 pins mlx-audio @ git+https://github.com/Blaizzy/mlx-audio@49596ac8b69b9ed377db311a73df838795f38a3d (v0.4.8).
Actual behavior
mlx-vlm 0.7.1 has requirement mlx-audio>=0.4.8, but you have mlx-audio 0.4.3.mlx-audio 0.4.3
mlx-vlm 0.7.1Module imports still succeed (import omlx, mlx_vlm, mlx_audio), so the mismatch is silent unless you run pip check.
Cause
Formula/omlx.rb first installs oMLX, which resolves mlx-audio@49596ac (0.4.8) from pyproject.toml. It then installs its own resource over it:
resource "mlx-audio" do
url "https://github.com/Blaizzy/mlx-audio.git",
revision: "51753266e0a4f766fd5e6fbc46652224efc23981" # 0.4.3
end
...
resource("mlx-audio").stage do
inreplace "pyproject.toml", '"mlx-lm==0.31.1"', '"mlx-lm>=0.31.1"'
system(*pip_install, ".[all]")
endThe resource revision was not bumped when pyproject.toml moved to 49596ac, so the final venv ends up with 0.4.3.
⚠ Bumping only the revision will break the build. mlx-audio@49596ac already declares mlx-lm>=0.31.1, so the inreplace pattern "mlx-lm==0.31.1" no longer matches, and Homebrew's inreplace fails when nothing is replaced.
Workaround
Install the pinned build into the keg's venv without touching other dependencies:
/opt/homebrew/Cellar/omlx/0.7.0rc1/libexec/bin/pip install --no-deps \
"mlx-audio @ git+https://github.com/Blaizzy/mlx-audio@49596ac8b69b9ed377db311a73df838795f38a3d"After this, pip check reports no broken requirements. A Kokoro-82M-bf16 TTS → whisper STT round trip, Qwen3.6-35B-A3B chat with MTP, and streamed tool calls all work on 0.7.0rc1. We applied the workaround before starting the server, so we did not observe a runtime failure from 0.4.3 itself. The failure described here is the violated declared requirement. Every brew build of this formula (reinstall, rc2, final) re-applies 0.4.3 until the formula changes.
Suggested fix
Either of these:
- Bump
resource "mlx-audio"to49596ac8b69b9ed377db311a73df838795f38a3dand remove the now-unmatchedinreplace. It is no longer needed, because 49596ac already usesmlx-lm>=0.31.1. - Drop the resource entirely, since
pyproject.tomlatv0.7.0rc1already installsmlx-audio@49596acand lists the audio runtime dependencies explicitly (espeakng-loader,librosa,misaki,num2words,numba,phonemizer-fork,pyloudnorm,spacy).
A pip check in the formula's test do block would catch this kind of drift between the resource and pyproject.toml in the future.
!! This was written with the help Claude AI
Source: jundot/omlx