9 pname = "whisper-ctranslate2";
12 python3Packages.buildPythonApplication {
13 inherit pname version;
16 src = fetchFromGitHub {
18 repo = "whisper-ctranslate2";
19 rev = "refs/tags/${version}";
20 hash = "sha256-sIkZIzSGqPbjg9BMkcciGFr024Pd8ohXl/NdbsxhjH0=";
23 build-system = [ python3Packages.setuptools ];
25 dependencies = with python3Packages; [
34 nativeCheckInputs = with python3Packages; [
40 # Note: we are not running the `e2e-tests` because they require downloading models from the internet.
41 ${python3.interpreter} -m nose2 -s tests
45 passthru.updateScript = nix-update-script { };
48 description = "Whisper command line client compatible with original OpenAI client based on CTranslate2";
49 homepage = "https://github.com/Softcatala/whisper-ctranslate2";
50 changelog = "https://github.com/Softcatala/whisper-ctranslate2/releases/tag/${version}";
51 license = lib.licenses.mit;
52 maintainers = with lib.maintainers; [ happysalada ];
53 mainProgram = "whisper-ctranslate2";