From 3851489509b0a8b80ec74bfc0ebfeffdc7c801de Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 1 Mar 2026 10:35:50 +0100 Subject: [PATCH] piper-tts: promote pathvalidate to non-optional dependency pathvalidate is needed even when disabling training. --- pkgs/by-name/pi/piper-tts/package.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/pi/piper-tts/package.nix b/pkgs/by-name/pi/piper-tts/package.nix index fc970291c386..c1bfc60b43ec 100644 --- a/pkgs/by-name/pi/piper-tts/package.nix +++ b/pkgs/by-name/pi/piper-tts/package.nix @@ -75,12 +75,15 @@ python3Packages.buildPythonApplication rec { cythonize --inplace src/piper/train/vits/monotonic_align/core.pyx ''; - dependencies = [ - python3Packages.onnxruntime - ] - ++ lib.optionals withTrain optional-dependencies.train - ++ lib.optionals withHTTP optional-dependencies.http - ++ lib.optionals withAlignment optional-dependencies.alignment; + dependencies = + with python3Packages; + [ + onnxruntime + pathvalidate + ] + ++ lib.optionals withTrain optional-dependencies.train + ++ lib.optionals withHTTP optional-dependencies.http + ++ lib.optionals withAlignment optional-dependencies.alignment; optional-dependencies = { train = @@ -89,7 +92,6 @@ python3Packages.buildPythonApplication rec { jsonargparse librosa lightning - pathvalidate pysilero-vad tensorboard tensorboardx