diff --git a/pkgs/development/python-modules/langchain-huggingface/default.nix b/pkgs/development/python-modules/langchain-huggingface/default.nix index 2cf86baccf0f..d9ef22aee8fb 100644 --- a/pkgs/development/python-modules/langchain-huggingface/default.nix +++ b/pkgs/development/python-modules/langchain-huggingface/default.nix @@ -2,10 +2,9 @@ lib, buildPythonPackage, fetchFromGitHub, - nix-update-script, # build-system - poetry-core, + pdm-backend, # dependencies huggingface-hub, @@ -27,23 +26,26 @@ responses, syrupy, toml, + + # passthru + nix-update-script, }: buildPythonPackage rec { pname = "langchain-huggingface"; - version = "0.1.2"; + version = "0.2.0"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-huggingface==${version}"; - hash = "sha256-ACR+JzKcnYXROGOQe6DlZeqcYd40KlesgXSUOybOT20="; + hash = "sha256-TqxssbqqjJV+/ynM2wo3C1aCV6wy0DsvdEuiTvVqNa8="; }; sourceRoot = "${src.name}/libs/partners/huggingface"; - build-system = [ poetry-core ]; + build-system = [ pdm-backend ]; pythonRelaxDeps = [ # Each component release requests the exact latest core. @@ -81,7 +83,7 @@ buildPythonPackage rec { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" - "^langchain-huggingface==([0-9.]+)$" + "langchain-huggingface==([0-9.]+)" ]; };