Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 google-generativeai, 6 llama-index-core, 7 poetry-core, 8 pythonOlder, 9 pythonRelaxDepsHook, 10}: 11 12buildPythonPackage rec { 13 pname = "llama-index-embeddings-google"; 14 version = "0.1.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 pname = "llama_index_embeddings_google"; 21 inherit version; 22 hash = "sha256-mJ+H4klmGlpTGXLErlLNWH5IUpGyXnbAhNsgT5fwCHs="; 23 }; 24 25 pythonRelaxDeps = [ "google-generativeai" ]; 26 27 build-system = [ poetry-core ]; 28 29 nativeBuildInputs = [ pythonRelaxDepsHook ]; 30 31 dependencies = [ 32 google-generativeai 33 llama-index-core 34 ]; 35 36 # Tests are only available in the mono repo 37 doCheck = false; 38 39 pythonImportsCheck = [ "llama_index.embeddings.google" ]; 40 41 meta = with lib; { 42 description = "LlamaIndex Embeddings Integration for Google"; 43 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/embeddings/llama-index-embeddings-google"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}