Files
nixpkgs/pkgs/development/python-modules/faster-whisper/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

68 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
av,
ctranslate2,
huggingface-hub,
onnxruntime,
tokenizers,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "faster-whisper";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "SYSTRAN";
repo = "faster-whisper";
tag = "v${version}";
hash = "sha256-pWVYxC1h0kIhhBxAt9oT2USuvoarlcwwYmaLUJlZZwY=";
};
build-system = [
setuptools
];
pythonRelaxDeps = [
"av"
"tokenizers"
];
dependencies = [
av
ctranslate2
huggingface-hub
onnxruntime
tokenizers
];
pythonImportsCheck = [ "faster_whisper" ];
# all tests require downloads
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export HOME=$TMPDIR
'';
meta = {
changelog = "https://github.com/SYSTRAN/faster-whisper/releases/tag/${src.tag}";
description = "Faster Whisper transcription with CTranslate2";
homepage = "https://github.com/SYSTRAN/faster-whisper";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}