From 0221a9ba5beb8dfbd8f520759e68e60a543d0e14 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 4 Apr 2023 12:16:49 +0200 Subject: [PATCH] tts: Run tests in passthru It was reported multiple times, that tts tests get stuck when many tests are run in parallel, like during nixpkgs-review runs. --- pkgs/tools/audio/tts/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/audio/tts/default.nix b/pkgs/tools/audio/tts/default.nix index 1c3cc91616c7..8b279a106fab 100644 --- a/pkgs/tools/audio/tts/default.nix +++ b/pkgs/tools/audio/tts/default.nix @@ -1,8 +1,8 @@ { lib , python3 , fetchFromGitHub -, fetchpatch , espeak-ng +, tts }: let @@ -115,6 +115,10 @@ python.pkgs.buildPythonApplication rec { ) ''; + # tests get stuck when run in nixpkgs-review, tested in passthru + doCheck = false; + passthru.tests.pytest = tts.overridePythonAttrs (_: { doCheck = true; }); + nativeCheckInputs = with python.pkgs; [ espeak-ng pytestCheckHook