From def4db69a7a9f4226ce62f3e2832e7f2a66d0e00 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 14 Apr 2022 17:53:24 +0300 Subject: [PATCH] whipper: add passthru.tests.version --- pkgs/applications/audio/whipper/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/audio/whipper/default.nix b/pkgs/applications/audio/whipper/default.nix index 8349cd8d5f62..7b76d91acf81 100644 --- a/pkgs/applications/audio/whipper/default.nix +++ b/pkgs/applications/audio/whipper/default.nix @@ -8,6 +8,8 @@ , flac , sox , util-linux +, testVersion +, whipper }: let @@ -72,6 +74,11 @@ in python3.pkgs.buildPythonApplication rec { runHook postCheck ''; + passthru.tests.version = testVersion { + package = whipper; + command = "HOME=$TMPDIR whipper --version"; + }; + meta = with lib; { homepage = "https://github.com/whipper-team/whipper"; description = "A CD ripper aiming for accuracy over speed";