python312Packages.langchain-groq: init at 0.2.4

This commit is contained in:
Sarah Clark
2025-02-02 21:34:10 -08:00
parent 3d89be6655
commit 655af7647c
2 changed files with 66 additions and 0 deletions
@@ -0,0 +1,64 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
langchain-core,
groq,
# tests
langchain-tests,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "langchain-groq";
version = "0.2.4";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-groq==${version}";
hash = "sha256-hXY0xmt0rvV/AhMZTR+UxMz0ba7pJjRzBRVn6XvX6cA=";
};
sourceRoot = "${src.name}/libs/partners/groq";
build-system = [ poetry-core ];
pythonRelaxDeps = [ "langchain-core" ];
dependencies = [
langchain-core
groq
];
nativeCheckInputs = [
langchain-tests
pytestCheckHook
];
pytestFlagsArray = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_groq" ];
passthru = {
inherit (langchain-core) updateScript;
skipBulkUpdate = true; # Broken, see https://github.com/NixOS/nixpkgs/issues/379898
};
meta = {
changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-groq==${version}";
description = "Integration package connecting Groq and LangChain";
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/groq";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
sarahec
];
};
}
+2
View File
@@ -7117,6 +7117,8 @@ self: super: with self; {
langchain-core = callPackage ../development/python-modules/langchain-core { };
langchain-groq = callPackage ../development/python-modules/langchain-groq { };
langchain-huggingface = callPackage ../development/python-modules/langchain-huggingface { };
langchain-mongodb = callPackage ../development/python-modules/langchain-mongodb { };