python311Packages.llama-index-llms-openai: 0.10.22 -> 0.1.12

No longer use mono repo for the sour as the release cycles don't match
This commit is contained in:
Fabian Affolter 2024-03-26 09:54:42 +01:00
parent d3610453fb
commit 81e32ce834
1 changed files with 20 additions and 8 deletions

View File

@ -1,28 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, fetchPypi
, llama-index-core
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "llama-index-llms-openai";
inherit (llama-index-core) version src meta;
version = "0.1.12";
pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/llms/${pname}";
disabled = pythonOlder "3.8";
nativeBuildInputs = [
src = fetchPypi {
pname = "llama_index_llms_openai";
inherit version;
hash = "sha256-QAygCDlRvWaM6Lwkh1znC2NufbMosnxqUObRorCBueY=";
};
build-system = [
poetry-core
];
propagatedBuildInputs = [
dependencies = [
llama-index-core
];
pythonImportsCheck = [
"llama_index.llms.openai"
];
meta = with lib; {
description = "LlamaIndex LLMS Integration for OpenAI";
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/llms/llama-index-llms-openai";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}