diff options
Diffstat (limited to 'pkgs/development/python-modules/faster-whisper/default.nix')
-rw-r--r-- | pkgs/development/python-modules/faster-whisper/default.nix | 49 |
1 files changed, 22 insertions, 27 deletions
diff --git a/pkgs/development/python-modules/faster-whisper/default.nix b/pkgs/development/python-modules/faster-whisper/default.nix index 2fe0b785cea6e..f36b90cbb3ff6 100644 --- a/pkgs/development/python-modules/faster-whisper/default.nix +++ b/pkgs/development/python-modules/faster-whisper/default.nix @@ -1,32 +1,33 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, pythonRelaxDepsHook +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pythonRelaxDepsHook, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, av -, ctranslate2 -, huggingface-hub -, onnxruntime -, tokenizers + # dependencies + av, + ctranslate2, + huggingface-hub, + onnxruntime, + tokenizers, -# tests -, pytestCheckHook + # tests + pytestCheckHook, }: buildPythonPackage rec { pname = "faster-whisper"; - version = "1.0.1"; + version = "1.0.2"; pyproject = true; src = fetchFromGitHub { owner = "SYSTRAN"; repo = "faster-whisper"; rev = "refs/tags/v${version}"; - hash = "sha256-b8P9fI32ubOrdayA0vnjLhpZ4qffB6W+8TEOA1YLKqo="; + hash = "sha256-O2RRwb+omgSpfckHh3oPu454g2ULT4gyolrg5olHcRc="; }; build-system = [ @@ -34,9 +35,7 @@ buildPythonPackage rec { pythonRelaxDepsHook ]; - pythonRelaxDeps = [ - "tokenizers" - ]; + pythonRelaxDeps = [ "tokenizers" ]; dependencies = [ av @@ -46,25 +45,21 @@ buildPythonPackage rec { tokenizers ]; - pythonImportsCheck = [ - "faster_whisper" - ]; + pythonImportsCheck = [ "faster_whisper" ]; # all tests require downloads doCheck = false; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; preCheck = '' export HOME=$TMPDIR ''; meta = with lib; { - changelog = "https://github.com/guillaumekln/faster-whisper/releases/tag/${version}"; + changelog = "https://github.com/SYSTRAN/faster-whisper/releases/tag/v${version}"; description = "Faster Whisper transcription with CTranslate2"; - homepage = "https://github.com/guillaumekln/faster-whisper"; + homepage = "https://github.com/SYSTRAN/faster-whisper"; license = licenses.mit; maintainers = with maintainers; [ hexa ]; }; |