2023-06-09 16:02:42 +00:00
|
|
|
{ lib
|
2024-03-10 22:23:04 +00:00
|
|
|
, python3Packages
|
2023-11-02 16:30:34 +00:00
|
|
|
, fetchFromGitHub
|
2023-06-09 16:02:42 +00:00
|
|
|
}:
|
|
|
|
|
2024-03-10 22:23:04 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2023-06-09 16:02:42 +00:00
|
|
|
pname = "wyoming-faster-whisper";
|
2024-03-10 22:23:04 +00:00
|
|
|
version = "2.0.0";
|
2023-11-02 16:30:34 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rhasspy";
|
|
|
|
repo = "wyoming-faster-whisper";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-03-10 22:23:04 +00:00
|
|
|
hash = "sha256-CeFSxL2Mn9lgboKghbteCl6VMTqruJgrI0io+TdaV5k=";
|
2023-06-09 16:02:42 +00:00
|
|
|
};
|
|
|
|
|
2024-03-10 22:23:04 +00:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
2023-11-02 16:30:34 +00:00
|
|
|
setuptools
|
2024-02-20 04:09:25 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"wyoming"
|
2023-11-02 16:30:34 +00:00
|
|
|
];
|
|
|
|
|
2024-03-10 22:23:04 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
faster-whisper
|
2023-06-09 16:02:42 +00:00
|
|
|
wyoming
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"wyoming_faster_whisper"
|
|
|
|
];
|
|
|
|
|
|
|
|
# no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-03-10 22:23:04 +00:00
|
|
|
changelog = "https://github.com/rhasspy/wyoming-faster-whisper/releases/tag/v${version}";
|
2023-06-09 16:02:42 +00:00
|
|
|
description = "Wyoming Server for Faster Whisper";
|
2023-11-02 16:30:34 +00:00
|
|
|
homepage = "https://github.com/rhasspy/wyoming-faster-whisper";
|
2023-06-09 16:02:42 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|