blob: 8952cc49e4e1bea982a0482f1cf62179812a0f7a (
plain)
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
67
|
{
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 ];
};
}
|