From 095ff77a5ce2be5f472d5d468cb80d103e81a234 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 13:08:40 +0000 Subject: [PATCH 1/8] python3Packages.torchaudio: skip the most time-consuming tests --- pkgs/development/python-modules/torchaudio/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/torchaudio/default.nix b/pkgs/development/python-modules/torchaudio/default.nix index 2f67d4c0e8f5..d851972fc827 100644 --- a/pkgs/development/python-modules/torchaudio/default.nix +++ b/pkgs/development/python-modules/torchaudio/default.nix @@ -126,6 +126,8 @@ buildPythonPackage.override { inherit (torch) stdenv; } (finalAttrs: { # Very long to run "AutogradCPUTest" + "TestAutogradLfilterCPU" + "TestWav2Vec2Model" ] ++ lib.optionals (hostPlatform.isLinux && hostPlatform.isAarch64) [ # AssertionError: Tensor-likes are not close! From 7d066af661de4b9e5b882ea4dca5817929ed9ccc Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 20:41:47 +0000 Subject: [PATCH 2/8] python3Packages.nnaudio: cleanup --- .../python-modules/nnaudio/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/nnaudio/default.nix b/pkgs/development/python-modules/nnaudio/default.nix index 3d54bcdf3d40..159d9a0d137f 100644 --- a/pkgs/development/python-modules/nnaudio/default.nix +++ b/pkgs/development/python-modules/nnaudio/default.nix @@ -1,15 +1,21 @@ { lib, + stdenv, + fetchurl, buildPythonPackage, fetchFromGitHub, - fetchurl, - librosa, - numpy, - pytestCheckHook, + + # build-system setuptools, + + # dependencies + numpy, scipy, - stdenv, torch, + + # tests + librosa, + pytestCheckHook, writableTmpDirAsHomeHook, }: let @@ -26,6 +32,7 @@ buildPythonPackage (finalAttrs: { pname = "nnaudio"; version = "0.3.4"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "KinWaiCheuk"; From 215fa626274ab591aab20435ebec92d14115d5dd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 20:42:29 +0000 Subject: [PATCH 3/8] python3Packages.nnaudio: skip failing test on aarch64-linux --- pkgs/development/python-modules/nnaudio/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/nnaudio/default.nix b/pkgs/development/python-modules/nnaudio/default.nix index 159d9a0d137f..ae88cd63096b 100644 --- a/pkgs/development/python-modules/nnaudio/default.nix +++ b/pkgs/development/python-modules/nnaudio/default.nix @@ -73,6 +73,7 @@ buildPythonPackage (finalAttrs: { ] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ # Test fixture matrix has other values + "test_cqt_1992_v2_linear[cpu]" "test_cqt_1992_v2_log[cpu]" ]; From 54ff794380349039b03ca881925aca4b7521a6c9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 21:19:41 +0000 Subject: [PATCH 4/8] python3Packages.nnaudio: disable tests on darwin as they fail in the sanbdox --- pkgs/development/python-modules/nnaudio/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/nnaudio/default.nix b/pkgs/development/python-modules/nnaudio/default.nix index ae88cd63096b..4440c896b106 100644 --- a/pkgs/development/python-modules/nnaudio/default.nix +++ b/pkgs/development/python-modules/nnaudio/default.nix @@ -64,6 +64,11 @@ buildPythonPackage (finalAttrs: { export NUMBA_CACHE_DIR=$(mktemp -d) ''; + # urllib3.exceptions.MaxRetryError + # On darwin the tests fail to locate the audio files and fallback to downloading them from the + # internet + doCheck = !stdenv.hostPlatform.isDarwin; + disabledTests = [ # AttributeError: module 'scipy.signal' has no attribute 'blackmanharris' "test_cfp_original[cpu]" From dd024c2c12118a568e96d5028ed35a3b1d891c67 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 21:13:36 +0000 Subject: [PATCH 5/8] python3Packages.usearch: skip failing tests on aarch64-linux --- pkgs/development/python-modules/usearch/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/usearch/default.nix b/pkgs/development/python-modules/usearch/default.nix index c04ce651f768..46691817f450 100644 --- a/pkgs/development/python-modules/usearch/default.nix +++ b/pkgs/development/python-modules/usearch/default.nix @@ -59,6 +59,12 @@ buildPythonPackage { writableTmpDirAsHomeHook ]; + disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # Numerical precision error (AssertionError) + "test_index_clustering" + "test_index_retrieval" + ]; + meta = { inherit (pkgs.usearch.meta) description From 82b984dc43f13a79fbc7f9dcb6a4ddc163e15ff5 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 21:13:58 +0000 Subject: [PATCH 6/8] python3Packages.usearch: enable __structuredAttrs --- pkgs/development/python-modules/usearch/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/usearch/default.nix b/pkgs/development/python-modules/usearch/default.nix index 46691817f450..a96ab35aa19a 100644 --- a/pkgs/development/python-modules/usearch/default.nix +++ b/pkgs/development/python-modules/usearch/default.nix @@ -19,6 +19,7 @@ buildPythonPackage { inherit (pkgs.usearch) pname version src; pyproject = true; + __structuredAttrs = true; postPatch = '' substituteInPlace python/usearch/__init__.py \ From 045ea4ff3ec9129db76f7bb80374dafd3b09c1f2 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 22:20:58 +0000 Subject: [PATCH 7/8] music-assistant: cleanup --- pkgs/by-name/mu/music-assistant/package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/mu/music-assistant/package.nix b/pkgs/by-name/mu/music-assistant/package.nix index c66e51117c4d..210abcf0c6d7 100644 --- a/pkgs/by-name/mu/music-assistant/package.nix +++ b/pkgs/by-name/mu/music-assistant/package.nix @@ -38,15 +38,16 @@ in assert (lib.elem "ariacast" providers) -> throw "music-assistant: ariacast has not been packaged, yet."; -pythonPackages.buildPythonApplication rec { +pythonPackages.buildPythonApplication (finalAttrs: { pname = "music-assistant"; version = "2.9.4"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "music-assistant"; repo = "server"; - tag = version; + tag = finalAttrs.version; hash = "sha256-PiSBghhlxknijRqghkO8wn1CB2XqaJrjrvGNvZUlNbo="; }; @@ -93,7 +94,7 @@ pythonPackages.buildPythonApplication rec { --replace-fail "except BrokenPipeError, ConnectionResetError:" "except (BrokenPipeError, ConnectionResetError):" substituteInPlace pyproject.toml \ - --replace-fail "0.0.0" "${version}" \ + --replace-fail "0.0.0" "${finalAttrs.version}" \ --replace-fail "==" ">=" rm -rv \ @@ -191,7 +192,7 @@ pythonPackages.buildPythonApplication rec { pytestCheckHook writableTmpDirAsHomeHook ] - ++ lib.concatAttrValues optional-dependencies + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies ++ (lib.concatMap (provider: providerPackages.${provider} pythonPackages) [ "acoustid_lookup" "audible" @@ -252,7 +253,7 @@ pythonPackages.buildPythonApplication rec { meta = { broken = stdenv.hostPlatform.isDarwin; - changelog = "https://github.com/music-assistant/server/releases/tag/${version}"; + changelog = "https://github.com/music-assistant/server/releases/tag/${finalAttrs.src.tag}"; description = "Music Assistant is a music library manager for various music sources which can easily stream to a wide range of supported players"; longDescription = '' Music Assistant is a free, opensource Media library manager that connects to your streaming services and a wide @@ -267,4 +268,4 @@ pythonPackages.buildPythonApplication rec { ]; mainProgram = "mass"; }; -} +}) From 84c0cfaf3aa429419efc54c85257e9f114fc5a74 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 29 Jun 2026 22:21:25 +0000 Subject: [PATCH 8/8] music-assistant: skip failing tests on aarch64-linux --- pkgs/by-name/mu/music-assistant/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/mu/music-assistant/package.nix b/pkgs/by-name/mu/music-assistant/package.nix index 210abcf0c6d7..dc59bf61ada4 100644 --- a/pkgs/by-name/mu/music-assistant/package.nix +++ b/pkgs/by-name/mu/music-assistant/package.nix @@ -238,6 +238,14 @@ pythonPackages.buildPythonApplication (finalAttrs: { "tests/providers/airplay/test_player.py::test_start_pairing__pin_decision" ]; + disabledTests = lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ + # RuntimeError: failed to initialize QNNPACK + "test_beat_detection" + "test_extended_analysis_fields" + "test_finalize_returns_audio_analysis_data" + "test_finalize_returns_none_on_early_exit" + ]; + pythonImportsCheck = [ "music_assistant" ]; passthru = {