summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/openai-whisper/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/openai-whisper/default.nix')
-rw-r--r--pkgs/development/python-modules/openai-whisper/default.nix54
1 files changed, 27 insertions, 27 deletions
diff --git a/pkgs/development/python-modules/openai-whisper/default.nix b/pkgs/development/python-modules/openai-whisper/default.nix
index 88f0ffab5dc7..d6933e1aeea1 100644
--- a/pkgs/development/python-modules/openai-whisper/default.nix
+++ b/pkgs/development/python-modules/openai-whisper/default.nix
@@ -1,27 +1,28 @@
-{ lib
-, stdenv
-, fetchFromGitHub
-, buildPythonPackage
-, substituteAll
+{
+ lib,
+ stdenv,
+ fetchFromGitHub,
+ buildPythonPackage,
+ substituteAll,
-# build-system
-, setuptools
+ # build-system
+ setuptools,
-# runtime
-, ffmpeg-headless
+ # runtime
+ ffmpeg-headless,
-# propagates
-, more-itertools
-, numba
-, numpy
-, openai-triton
-, tiktoken
-, torch
-, tqdm
+ # propagates
+ more-itertools,
+ numba,
+ numpy,
+ openai-triton,
+ tiktoken,
+ torch,
+ tqdm,
-# tests
-, pytestCheckHook
-, scipy
+ # tests
+ pytestCheckHook,
+ scipy,
}:
buildPythonPackage rec {
@@ -43,9 +44,7 @@ buildPythonPackage rec {
})
];
- nativeBuildInputs = [
- setuptools
- ];
+ nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
more-itertools
@@ -54,9 +53,7 @@ buildPythonPackage rec {
tiktoken
torch
tqdm
- ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform openai-triton) [
- openai-triton
- ];
+ ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform openai-triton) [ openai-triton ];
preCheck = ''
export HOME=$TMPDIR
@@ -81,6 +78,9 @@ buildPythonPackage rec {
mainProgram = "whisper";
homepage = "https://github.com/openai/whisper";
license = licenses.mit;
- maintainers = with maintainers; [ hexa MayNiklas ];
+ maintainers = with maintainers; [
+ hexa
+ MayNiklas
+ ];
};
}