Commit e5e9e177 authored by Benjamin Sparks's avatar Benjamin Sparks
Browse files

python3Packages.whisperx: 3.7.6 -> 3.8.1

parent 0126ad97
Loading
Loading
Loading
Loading
+6 −14
Original line number Diff line number Diff line
@@ -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;
  };
}