blob: 9c02e6beee3670a0ec0323b93f0f8f7dfe91c72a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonRelaxDepsHook,
# build-system
setuptools,
# dependencies
av,
ctranslate2,
huggingface-hub,
onnxruntime,
tokenizers,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "faster-whisper";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "SYSTRAN";
repo = "faster-whisper";
rev = "refs/tags/v${version}";
hash = "sha256-C/O+wt3dykQJmH+VsVkpQwEAdyW8goMUMKR0Z3Y7jdo=";
};
build-system = [
setuptools
pythonRelaxDepsHook
];
pythonRelaxDeps = [ "tokenizers" ];
dependencies = [
av
ctranslate2
huggingface-hub
onnxruntime
tokenizers
];
pythonImportsCheck = [ "faster_whisper" ];
# all tests require downloads
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export HOME=$TMPDIR
'';
meta = with lib; {
changelog = "https://github.com/SYSTRAN/faster-whisper/releases/tag/v${version}";
description = "Faster Whisper transcription with CTranslate2";
homepage = "https://github.com/SYSTRAN/faster-whisper";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}
|