Merge pull request #311503 from malob/fix-openai-whisper-darwin
python311Packages.openai-whisper: fix Darwin build
This commit is contained in:
@@ -189,7 +189,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Language and compiler for writing highly efficient custom Deep-Learning primitives";
|
||||
homepage = "https://github.com/openai/triton";
|
||||
platforms = lib.platforms.unix;
|
||||
platforms = platforms.linux;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ SomeoneSerge Madouura ];
|
||||
};
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user