summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2022-04-14 17:12:24 +0200
committerGitHub <noreply@github.com>2022-04-14 17:12:24 +0200
commit497948ec71b344ddf23e730781c576bb519c9af5 (patch)
tree4248a01aaa802d51ef28fd4f7be462617a657479 /pkgs
parent6490a1841c0e2a0e0cfc15ed81876e9edbf72e37 (diff)
parentdef4db69a7a9f4226ce62f3e2832e7f2a66d0e00 (diff)
downloadnixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.tar
nixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.tar.gz
nixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.tar.bz2
nixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.tar.lz
nixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.tar.xz
nixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.tar.zst
nixpkgs-497948ec71b344ddf23e730781c576bb519c9af5.zip
Merge pull request #168634 from mweinelt/whipper
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/audio/whipper/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/audio/whipper/default.nix b/pkgs/applications/audio/whipper/default.nix
index a7a8f054172..7b76d91acf8 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
@@ -45,6 +47,7 @@ in python3.pkgs.buildPythonApplication rec {
     ruamel-yaml
     discid
     pillow
+    setuptools
   ];
 
   buildInputs = [ libsndfile ];
@@ -71,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";