mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
Merge pull request #311503 from malob/fix-openai-whisper-darwin
python311Packages.openai-whisper: fix Darwin build
This commit is contained in:
commit
a4ab96ff23
2 changed files with 5 additions and 3 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue