Unverified Commit c4edf51d authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.speechbrain: fix build with torchaudio 2.9 (#457376)

parents 90eb179a 9f261152
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -2,6 +2,10 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch,

  # build-system
  setuptools,

  # dependencies
  huggingface-hub,
@@ -28,6 +32,18 @@ buildPythonPackage rec {
    hash = "sha256-H45kTOIO6frbrRu+TP+udn1z60ZEcrShNB9iTCLInQs=";
  };

  patches = [
    # https://github.com/speechbrain/speechbrain/pull/2988
    (fetchpatch {
      name = "torchaudio-2.9-compat.patch";
      url = "https://github.com/speechbrain/speechbrain/commit/927530fa95e238fbc396000618e839a4a986dd7d.patch";
      excludes = [ "pyproject.toml" ];
      hash = "sha256-TJxBQLggX2ZHppUJwMcg9+A9r0r+D20XUfivBFW7y/U=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
    huggingface-hub
    hyperpyyaml