Merge pull request #299108 from fabaff/llama-index-embeddings-google-bump

python311Packages.llama-index-embeddings-google: 0.10.22 -> 0.1.4
This commit is contained in:
Fabian Affolter 2024-03-26 10:03:43 +01:00 committed by GitHub
commit 66bc1c6f1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,30 +1,51 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchPypi
, google-generativeai , google-generativeai
, llama-index-core , llama-index-core
, poetry-core , poetry-core
, pythonOlder
, pythonRelaxDepsHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "llama-index-embeddings-google"; pname = "llama-index-embeddings-google";
version = "0.1.4";
inherit (llama-index-core) version src meta;
pyproject = true; pyproject = true;
sourceRoot = "${src.name}/llama-index-integrations/embeddings/${pname}"; disabled = pythonOlder "3.8";
nativeBuildInputs = [ src = fetchPypi {
poetry-core pname = "llama_index_embeddings_google";
inherit version;
hash = "sha256-jQYN/5XPCrMjvwXBARdRDLC+3JhqgZjlcVajmcRlVJw=";
};
pythonRelaxDeps = [
"google-generativeai"
]; ];
propagatedBuildInputs = [ build-system = [
poetry-core
pythonRelaxDepsHook
];
dependencies = [
google-generativeai google-generativeai
llama-index-core llama-index-core
]; ];
# Tests are only available in the mono repo
doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
"llama_index.embeddings.google" "llama_index.embeddings.google"
]; ];
meta = with lib; {
description = "LlamaIndex Embeddings Integration for Google";
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings/llama-index-embeddings-google";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
} }