From 2fa9881d313ad297d3824e8eb30eefc9bb35a8a4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 4 Apr 2026 13:02:02 +0000 Subject: [PATCH] python3Packages.speechbrain: 1.0.3 -> 1.1.0 Diff: https://github.com/speechbrain/speechbrain/compare/v1.0.3...v1.1.0 Changelog: https://github.com/speechbrain/speechbrain/releases/tag/v1.1.0 --- .../python-modules/speechbrain/default.nix | 35 ++++++++----------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/speechbrain/default.nix b/pkgs/development/python-modules/speechbrain/default.nix index cd49c5dee1d6..2bc905414aac 100644 --- a/pkgs/development/python-modules/speechbrain/default.nix +++ b/pkgs/development/python-modules/speechbrain/default.nix @@ -2,7 +2,6 @@ lib, buildPythonPackage, fetchFromGitHub, - fetchpatch, # build-system setuptools, @@ -13,35 +12,27 @@ joblib, numpy, packaging, - sentencepiece, + requests, scipy, + sentencepiece, + soundfile, torch, torchaudio, tqdm, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "speechbrain"; - version = "1.0.3"; + version = "1.1.0"; pyproject = true; src = fetchFromGitHub { owner = "speechbrain"; repo = "speechbrain"; - tag = "v${version}"; - hash = "sha256-H45kTOIO6frbrRu+TP+udn1z60ZEcrShNB9iTCLInQs="; + tag = "v${finalAttrs.version}"; + hash = "sha256-98g9HSCD6ahsmCSKSKIY1okYOuzUqVuJO9N9WUiZMPk="; }; - 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 = [ @@ -50,22 +41,24 @@ buildPythonPackage rec { joblib numpy packaging - sentencepiece + requests scipy + sentencepiece + soundfile torch torchaudio tqdm ]; - doCheck = false; # requires sox backend - pythonImportsCheck = [ "speechbrain" ]; + doCheck = false; # requires sox backend + meta = { description = "PyTorch-based Speech Toolkit"; homepage = "https://speechbrain.github.io"; - changelog = "https://github.com/speechbrain/speechbrain/releases/tag/v${version}"; + changelog = "https://github.com/speechbrain/speechbrain/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; }; -} +})