Sarah Clark
2025-05-08 12:23:02 -07:00
parent a91784d608
commit cbb91e846c

View File

@@ -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.]+)"
];
};