0
0
Fork 0
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:
Martin Weinelt 2024-05-14 20:28:52 +02:00 committed by GitHub
commit a4ab96ff23
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -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 ];
};

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 = [