python3Packages.langchain-google-genai: init at 2.1.5 (#416029)

authored by dotlambda and committed by GitHub 5ea515f7 91e56b89

+97
+6
maintainers/maintainer-list.nix
··· 7840 7840 name = "Elis Hirwing"; 7841 7841 keys = [ { fingerprint = "67FE 98F2 8C44 CF22 1828 E12F D57E FA62 5C9A 925F"; } ]; 7842 7842 }; 7843 + eu90h = { 7844 + email = "stefan@eu90h.com"; 7845 + github = "eu90h"; 7846 + githubId = 5161785; 7847 + name = "Stefan"; 7848 + }; 7843 7849 euank = { 7844 7850 email = "euank-nixpkg@euank.com"; 7845 7851 github = "euank";
+89
pkgs/development/python-modules/langchain-google-genai/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + 6 + # build-system 7 + poetry-core, 8 + 9 + # dependencies 10 + filetype, 11 + google-api-core, 12 + google-auth, 13 + google-generativeai, 14 + langchain-core, 15 + pydantic, 16 + 17 + # tests 18 + freezegun, 19 + langchain-tests, 20 + numpy, 21 + pytest-asyncio, 22 + pytest-mock, 23 + pytestCheckHook, 24 + syrupy, 25 + 26 + # passthru 27 + gitUpdater, 28 + }: 29 + 30 + buildPythonPackage rec { 31 + pname = "langchain-google-genai"; 32 + version = "2.1.5"; 33 + pyproject = true; 34 + 35 + src = fetchFromGitHub { 36 + owner = "langchain-ai"; 37 + repo = "langchain-google"; 38 + tag = "libs/genai/v${version}"; 39 + hash = "sha256-NCy4PHUSChsMVSebshDRGsg/koY7S4+mvI+GlIqW4q4="; 40 + }; 41 + 42 + sourceRoot = "${src.name}/libs/genai"; 43 + 44 + build-system = [ poetry-core ]; 45 + 46 + pythonRelaxDeps = [ 47 + # Each component release requests the exact latest core. 48 + # That prevents us from updating individual components. 49 + "langchain-core" 50 + ]; 51 + 52 + dependencies = [ 53 + filetype 54 + google-api-core 55 + google-auth 56 + google-generativeai 57 + langchain-core 58 + pydantic 59 + ]; 60 + 61 + nativeCheckInputs = [ 62 + freezegun 63 + langchain-tests 64 + numpy 65 + pytest-asyncio 66 + pytest-mock 67 + pytestCheckHook 68 + syrupy 69 + ]; 70 + 71 + pytestFlagsArray = [ "tests/unit_tests" ]; 72 + 73 + pythonImportsCheck = [ "langchain_google_genai" ]; 74 + 75 + passthru.updateScript = gitUpdater { 76 + rev-prefix = "libs/genai/v"; 77 + }; 78 + 79 + meta = { 80 + changelog = "https://github.com/langchain-ai/langchain-google/releases/tag/${src.tag}"; 81 + description = "LangChain integrations for Google Gemini"; 82 + homepage = "https://github.com/langchain-ai/langchain-google/tree/main/libs/genai"; 83 + license = lib.licenses.mit; 84 + maintainers = [ 85 + lib.maintainers.eu90h 86 + lib.maintainers.sarahec 87 + ]; 88 + }; 89 + }
+2
pkgs/top-level/python-packages.nix
··· 7807 7807 7808 7808 langchain-fireworks = callPackage ../development/python-modules/langchain-fireworks { }; 7809 7809 7810 + langchain-google-genai = callPackage ../development/python-modules/langchain-google-genai { }; 7811 + 7810 7812 langchain-groq = callPackage ../development/python-modules/langchain-groq { }; 7811 7813 7812 7814 langchain-huggingface = callPackage ../development/python-modules/langchain-huggingface { };