mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-11 10:16:01 +01:00
39 lines
889 B
Nix
39 lines
889 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
llama-index-core,
|
|
hatchling,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "llama-index-embeddings-openai";
|
|
version = "0.5.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchPypi {
|
|
pname = "llama_index_embeddings_openai";
|
|
inherit version;
|
|
hash = "sha256-HImGekiw0Nqj0tRPXnazlLKy75k1ky2vkhued5Oczag=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ llama-index-core ];
|
|
|
|
# Tests are only available in the mono repo
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "llama_index.embeddings.openai" ];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|