Commit 655af764 authored by Sarah Clark's avatar Sarah Clark
Browse files

python312Packages.langchain-groq: init at 0.2.4

parent 3d89be66
Loading
Loading
Loading
Loading
+64 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };