Files

40 lines
889 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
llama-index-core,
openai,
hatchling,
}:
buildPythonPackage (finalAttrs: {
pname = "llama-index-embeddings-openai";
version = "0.6.0";
pyproject = true;
src = fetchPypi {
pname = "llama_index_embeddings_openai";
inherit (finalAttrs) version;
hash = "sha256-6z5mBr6By4kSUHPiPJfAphGdq7SCetvRRpfCAprXPyk=";
};
build-system = [ hatchling ];
dependencies = [
llama-index-core
openai
];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [ "llama_index.embeddings.openai" ];
meta = {
description = "LlamaIndex Embeddings Integration for OpenAI";
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/readers/llama-index-readers-s3";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})