python3Packages.langchain-perplexity: init at 0.1.1
homepage: https://github.com/langchain-ai/langchain/tree/master/libs/partners/perplexity changelog: https://github.com/langchain-ai/langchain/releases/tag/langchain-perplexity%3D%3D0.1.1
This commit is contained in:
parent
ab08953dd2
commit
ec67ce18da
@ -14,6 +14,7 @@ declare -ar packages=(
|
|||||||
langchain-mongodb
|
langchain-mongodb
|
||||||
langchain-ollama
|
langchain-ollama
|
||||||
langchain-openai
|
langchain-openai
|
||||||
|
langchain-perplexity
|
||||||
langchain-tests
|
langchain-tests
|
||||||
langchain-text-splitters
|
langchain-text-splitters
|
||||||
)
|
)
|
||||||
|
|||||||
@ -0,0 +1,77 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
nix-update-script,
|
||||||
|
|
||||||
|
# build-system
|
||||||
|
pdm-backend,
|
||||||
|
|
||||||
|
# dependencies
|
||||||
|
langchain-core,
|
||||||
|
openai,
|
||||||
|
|
||||||
|
# tests
|
||||||
|
langchain-tests,
|
||||||
|
pytest-asyncio,
|
||||||
|
pytest-cov,
|
||||||
|
pytest-mock,
|
||||||
|
pytestCheckHook,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "langchain-perplexity";
|
||||||
|
version = "0.1.1";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "langchain-ai";
|
||||||
|
repo = "langchain";
|
||||||
|
tag = "langchain-perplexity==${version}";
|
||||||
|
hash = "sha256-s20AnDsyLCzpG45QqgZp0WzlbdVrHNfpUQsMPUaF1qs=";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/libs/partners/perplexity";
|
||||||
|
|
||||||
|
build-system = [ pdm-backend ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
langchain-core
|
||||||
|
openai
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonRelaxDeps = [
|
||||||
|
# Each component release requests the exact latest core.
|
||||||
|
# That prevents us from updating individual components.
|
||||||
|
"langchain-core"
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
langchain-tests
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-cov
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "tests/unit_tests" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "langchain_perplexity" ];
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script {
|
||||||
|
extraArgs = [
|
||||||
|
"--version-regex"
|
||||||
|
"langchain-perplexity==([0-9.]+)"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/langchain-ai/langchain-perplexity/releases/tag/langchain-perplexity==${version}";
|
||||||
|
description = "Build LangChain applications with Perplexity";
|
||||||
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/perplexity";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = [
|
||||||
|
lib.maintainers.sarahec
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
@ -7542,6 +7542,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
langchain-openai = callPackage ../development/python-modules/langchain-openai { };
|
langchain-openai = callPackage ../development/python-modules/langchain-openai { };
|
||||||
|
|
||||||
|
langchain-perplexity = callPackage ../development/python-modules/langchain-perplexity { };
|
||||||
|
|
||||||
langchain-tests = callPackage ../development/python-modules/langchain-tests { };
|
langchain-tests = callPackage ../development/python-modules/langchain-tests { };
|
||||||
|
|
||||||
langchain-text-splitters = callPackage ../development/python-modules/langchain-text-splitters { };
|
langchain-text-splitters = callPackage ../development/python-modules/langchain-text-splitters { };
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user