Files
nixpkgs/pkgs/development/python-modules/llama-index-llms-openai/default.nix
T

45 lines
927 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
llama-index-core,
openai,
hatchling,
}:
buildPythonPackage rec {
pname = "llama-index-llms-openai";
version = "0.6.12";
pyproject = true;
src = fetchPypi {
pname = "llama_index_llms_openai";
inherit version;
hash = "sha256-m4sddDWYP5dPe0X3lCg2G/22jGIlQSBTkr+PD+oXm64=";
};
pythonRemoveDeps = [
# Circular dependency
"llama-index-agent-openai"
];
build-system = [ hatchling ];
dependencies = [
llama-index-core
openai
];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [ "llama_index.llms.openai" ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}