nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 41 lines 973 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-generativeai, 6 llama-index-core, 7 hatchling, 8}: 9 10buildPythonPackage (finalAttrs: { 11 pname = "llama-index-embeddings-google"; 12 version = "0.4.2"; 13 pyproject = true; 14 15 src = fetchPypi { 16 pname = "llama_index_embeddings_google"; 17 inherit (finalAttrs) version; 18 hash = "sha256-dWV2fKudLsxfpHTGrGljMBU62vYUqzf8NarQ3Nl9poI="; 19 }; 20 21 pythonRelaxDeps = [ "google-generativeai" ]; 22 23 build-system = [ hatchling ]; 24 25 dependencies = [ 26 google-generativeai 27 llama-index-core 28 ]; 29 30 # Tests are only available in the mono repo 31 doCheck = false; 32 33 pythonImportsCheck = [ "llama_index.embeddings.google" ]; 34 35 meta = { 36 description = "LlamaIndex Embeddings Integration for Google"; 37 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings/llama-index-embeddings-google"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ fab ]; 40 }; 41})