From a74832c7732d22f485db72d83ff00bc65a3f598f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 28 Jun 2026 23:05:27 +0000 Subject: [PATCH] python3Packages.torchaudio: add missing test dependencies --- .../python-modules/torchaudio/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/development/python-modules/torchaudio/default.nix b/pkgs/development/python-modules/torchaudio/default.nix index 5c3eba58afdb..a727d78159fe 100644 --- a/pkgs/development/python-modules/torchaudio/default.nix +++ b/pkgs/development/python-modules/torchaudio/default.nix @@ -14,12 +14,17 @@ # tests expecttest, inflect, + librosa, parameterized, pytestCheckHook, pytorch-lightning, + requests, scipy, sentencepiece, + soundfile, unidecode, + # linux-only: + fairseq, # passthru torchaudio, @@ -106,11 +111,21 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { scipy sentencepiece unidecode + librosa + requests + soundfile + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ + fairseq ]; disabledTestPaths = [ # Require internet access "test/integration_tests" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Passes, but hangs the build after Pytest completes + "test/torchaudio_unittest/models/models_test.py::TestConvTasNet" ]; disabledTests = [