python3Packages.langchain-huggingface: migrate to finalAttrs
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
gitUpdater,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "langchain-huggingface";
|
||||
version = "1.2.1";
|
||||
pyproject = true;
|
||||
@@ -39,11 +39,11 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "langchain-ai";
|
||||
repo = "langchain";
|
||||
tag = "langchain-huggingface==${version}";
|
||||
tag = "langchain-huggingface==${finalAttrs.version}";
|
||||
hash = "sha256-I6n7UNEbGqlyzT663k7+YpcaB/+rE9RlkqIToupoEyY=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/libs/partners/huggingface";
|
||||
sourceRoot = "${finalAttrs.src.name}/libs/partners/huggingface";
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
@@ -88,7 +88,7 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}";
|
||||
changelog = "https://github.com/langchain-ai/langchain/releases/tag/${finalAttrs.src.tag}";
|
||||
description = "Integration package connecting Huggingface related classes and LangChain";
|
||||
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/huggingface";
|
||||
license = lib.licenses.mit;
|
||||
@@ -97,4 +97,4 @@ buildPythonPackage rec {
|
||||
sarahec
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user