nixpkgs/pkgs/development/python-modules/langchain-groq/default.nix
Peder Bergebakken Sundt c77ac9dfc3 treewide: fix typos
2025-06-02 16:07:07 +02:00

71 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
# build-system
pdm-backend,
# dependencies
langchain-core,
groq,
# tests
langchain-tests,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "langchain-groq";
version = "0.3.2";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain-groq==${version}";
hash = "sha256-KsKT7+jpTTiSVMZWcIwW7+1BCL7rpZHg/OX3PNLI6As=";
};
sourceRoot = "${src.name}/libs/partners/groq";
build-system = [ pdm-backend ];
pythonRelaxDeps = [
# Each component release requests the exact latest core.
# That prevents us from updating individual components.
"langchain-core"
];
dependencies = [
langchain-core
groq
];
nativeCheckInputs = [
langchain-tests
pytestCheckHook
];
pytestFlagsArray = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_groq" ];
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"^langchain-groq==([0-9.]+)$"
];
};
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
];
};
}