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.
This commit is contained in:
Martin Weinelt 2023-04-04 12:16:49 +02:00
parent 5694161764
commit 0221a9ba5b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -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