From e5e9e177478ee426779c953f9ed9e32ea1af7555 Mon Sep 17 00:00:00 2001 From: Benjamin Sparks Date: Mon, 16 Feb 2026 12:35:39 +0000 Subject: [PATCH] python3Packages.whisperx: 3.7.6 -> 3.8.1 Very importantly, whisperx migrated away from pyannote-audio <4 to >= 4 in v3.8.0! Changelog: https://github.com/m-bain/whisperX/releases/tag/v3.7.7 Changelog: https://github.com/m-bain/whisperX/releases/tag/v3.8.0 Changelog: https://github.com/m-bain/whisperX/releases/tag/v3.8.1 Diff: https://github.com/m-bain/whisperX/compare/v3.7.6...v3.8.1 --- .../python-modules/whisperx/default.nix | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/whisperx/default.nix b/pkgs/development/python-modules/whisperx/default.nix index a2e5b132259f..ba7734045e14 100644 --- a/pkgs/development/python-modules/whisperx/default.nix +++ b/pkgs/development/python-modules/whisperx/default.nix @@ -13,6 +13,7 @@ huggingface-hub, nltk, numpy, + omegaconf, pandas, pyannote-audio, torch, @@ -38,14 +39,14 @@ let in buildPythonPackage rec { pname = "whisperx"; - version = "3.7.6"; + version = "3.8.1"; pyproject = true; src = fetchFromGitHub { owner = "m-bain"; repo = "whisperX"; tag = "v${version}"; - hash = "sha256-ZHPGQP5HIuFafHGS6ykiSNtHY6QHh0o8DUE2lV41lUI="; + hash = "sha256-2HjQtb8k3px0kqXowKtCXkiG2GuKLCuCtDOPYYa/tbc="; }; # As `makeWrapperArgs` does not apply to the module, and whisperx depends on `ffmpeg`, @@ -60,9 +61,6 @@ buildPythonPackage rec { build-system = [ setuptools ]; pythonRelaxDeps = [ - "numpy" - "pandas" - "pyannote-audio" "torch" "torchaudio" ]; @@ -72,6 +70,7 @@ buildPythonPackage rec { huggingface-hub nltk numpy + omegaconf pandas pyannote-audio torch @@ -85,6 +84,8 @@ buildPythonPackage rec { # No tests in repository doCheck = false; + pythonImportsCheck = [ "whisperx" ]; + meta = { mainProgram = "whisperx"; description = "Automatic Speech Recognition with Word-level Timestamps (& Diarization)"; @@ -92,14 +93,5 @@ buildPythonPackage rec { changelog = "https://github.com/m-bain/whisperX/releases/tag/${src.tag}"; license = lib.licenses.bsd2; maintainers = [ lib.maintainers.bengsparks ]; - - # nixpkgs has `pyannote-audio` >= 4.0.0, but `whisperx`'s `pyproject.toml` specifies <4.0.0. - # - # See https://github.com/m-bain/whisperX/issues/1240 for a serious discussion, - # and a potential upgrade in https://github.com/m-bain/whisperX/pull/1243. - # Alternatively read https://github.com/m-bain/whisperX/issues/1336 if you prefer a more humorous perspective. - # - # Failure was first documented in nixpkgs under https://github.com/NixOS/nixpkgs/issues/460172. - broken = true; }; }