mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-16 21:08:24 +00:00
python311Packages.openai-whisper: fix Darwin build
This commit is contained in:
parent
de66049921
commit
b39a6cb3de
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user