natsukium
2025-02-15 11:22:54 +09:00
parent 0cc7d8f0cb
commit f8fbcac1b4
@@ -2,27 +2,27 @@
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
# build-system
poetry-core,
pdm-backend,
# buildInputs
bash,
# dependencies
aiohttp,
async-timeout,
langchain-core,
langchain-text-splitters,
langsmith,
numpy,
pydantic,
pyyaml,
requests,
sqlalchemy,
tenacity,
# optional-dependencies
numpy,
# tests
freezegun,
httpx,
@@ -40,19 +40,19 @@
buildPythonPackage rec {
pname = "langchain";
version = "0.3.15";
version = "0.3.18";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
tag = "langchain==${version}";
hash = "sha256-lANGoMABH1f9Tl/GgMMr7eTCji9q3uqD+Mwjr4nd2Dg=";
hash = "sha256-oJ4lUbQqHNEqd9UdgLH0ZmTkdZpUbJ7UNsQyIrs8JvI=";
};
sourceRoot = "${src.name}/libs/langchain";
build-system = [ poetry-core ];
build-system = [ pdm-backend ];
buildInputs = [ bash ];
@@ -66,12 +66,13 @@ buildPythonPackage rec {
langchain-core
langchain-text-splitters
langsmith
numpy
pydantic
pyyaml
requests
sqlalchemy
tenacity
];
] ++ lib.optional (pythonOlder "3.11") async-timeout;
optional-dependencies = {
numpy = [ numpy ];