2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchPypi
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "wyoming-faster-whisper";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.0.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "wyoming_faster_whisper";
|
|
|
|
inherit version;
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-wo62m8gIP9hXihkd8j2haVvz3TlJv3m5WWthTPFwesk=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./faster-whisper-entrypoint.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
ctranslate2
|
|
|
|
tokenizers
|
|
|
|
wyoming
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wyoming_faster_whisper"
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Wyoming Server for Faster Whisper";
|
|
|
|
homepage = "https://pypi.org/project/wyoming-faster-whisper/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|