From 6df2186d5a1326d517dd3a33b0444efe6fa8ce76 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 14 Apr 2022 15:41:03 +0200 Subject: [PATCH 1/2] whipper: propagate setuptools Related: #168504 --- pkgs/applications/audio/whipper/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/audio/whipper/default.nix b/pkgs/applications/audio/whipper/default.nix index a7a8f054172c..8349cd8d5f62 100644 --- a/pkgs/applications/audio/whipper/default.nix +++ b/pkgs/applications/audio/whipper/default.nix @@ -45,6 +45,7 @@ in python3.pkgs.buildPythonApplication rec { ruamel-yaml discid pillow + setuptools ]; buildInputs = [ libsndfile ]; From def4db69a7a9f4226ce62f3e2832e7f2a66d0e00 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 14 Apr 2022 17:53:24 +0300 Subject: [PATCH 2/2] 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";