diff options
Diffstat (limited to 'pkgs/tools/audio/whisper-ctranslate2/default.nix')
-rw-r--r-- | pkgs/tools/audio/whisper-ctranslate2/default.nix | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/pkgs/tools/audio/whisper-ctranslate2/default.nix b/pkgs/tools/audio/whisper-ctranslate2/default.nix index ff74c8bffcb9f..5bb464345fdd0 100644 --- a/pkgs/tools/audio/whisper-ctranslate2/default.nix +++ b/pkgs/tools/audio/whisper-ctranslate2/default.nix @@ -5,11 +5,11 @@ }: let pname = "whisper-ctranslate2"; - version = "0.4.2"; + version = "0.4.4"; in python3.pkgs.buildPythonApplication { inherit pname version; - format = "setuptools"; + pyproject = true; disabled = python3.pythonOlder "3.6"; @@ -17,28 +17,33 @@ python3.pkgs.buildPythonApplication { owner = "Softcatala"; repo = "whisper-ctranslate2"; rev = version; - hash = "sha256-q8ofj/MVahBRmE9BSSN9EzadDqJVSxmdTMl53YhrKzY="; + hash = "sha256-iVS1wyPCXlbK1rMFidNbbUohu527NSaCpu1Dve01TvM="; }; - propagatedBuildInputs = with python3.pkgs; [ - numpy - faster-whisper + build-system = [ python3.pkgs.setuptools ]; + + dependencies = with python3.pkgs; [ ctranslate2 - tqdm + faster-whisper + numpy + pyannote-audio sounddevice + tqdm ]; - passthru.updateScript = nix-update-script { }; - nativeCheckInputs = with python3.pkgs; [ nose2 ]; checkPhase = '' + runHook preCheck # Note: we are not running the `e2e-tests` because they require downloading models from the internet. ${python3.interpreter} -m nose2 -s tests + runHook postCheck ''; + passthru.updateScript = nix-update-script { }; + meta = with lib; { description = "Whisper command line client compatible with original OpenAI client based on CTranslate2"; homepage = "https://github.com/Softcatala/whisper-ctranslate2"; |