python311Packages.openai-whisper: fix Darwin build

This commit is contained in:
Malo Bourgon 2024-05-13 16:49:34 -07:00
parent de66049921
commit b39a6cb3de

View File

@ -1,4 +1,5 @@
{ lib
, stdenv
, fetchFromGitHub
, buildPythonPackage
, substituteAll
@ -44,17 +45,17 @@ buildPythonPackage rec {
nativeBuildInputs = [
setuptools
scipy
];
propagatedBuildInputs = [
more-itertools
numba
numpy
openai-triton
tiktoken
torch
tqdm
] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform openai-triton) [
openai-triton
];
preCheck = ''
@ -63,6 +64,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
pytestCheckHook
scipy
];
disabledTests = [