diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index f7e43dae3162..0af7ae2e6267 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -4,7 +4,7 @@ fetchFromGitHub, # build-system - poetry-core, + pdm-backend, # dependencies aiohttp, @@ -13,16 +13,13 @@ langchain, langchain-core, langsmith, + numpy, pydantic-settings, pyyaml, requests, sqlalchemy, tenacity, - # optional-dependencies - typer, - numpy, - # tests httpx, langchain-tests, @@ -39,19 +36,19 @@ buildPythonPackage rec { pname = "langchain-community"; - version = "0.3.15"; + version = "0.3.17"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-community==${version}"; - hash = "sha256-2/Zrl/wED/zm1m+NqgAD4AdrEh/LjFOeQoOSSM05e+s="; + hash = "sha256-+10Q8em74G5RU6VtDqhQJuDsjJ4/EjGM4a3xQzs3Qzo="; }; sourceRoot = "${src.name}/libs/community"; - build-system = [ poetry-core ]; + build-system = [ pdm-backend ]; pythonRelaxDeps = [ "numpy" @@ -66,6 +63,7 @@ buildPythonPackage rec { langchain langchain-core langsmith + numpy pydantic-settings pyyaml requests @@ -73,11 +71,6 @@ buildPythonPackage rec { tenacity ]; - optional-dependencies = { - cli = [ typer ]; - numpy = [ numpy ]; - }; - pythonImportsCheck = [ "langchain_community" ]; nativeCheckInputs = [