python3Packages.pymupdf4llm: migrate to finalAttrs
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
tabulate,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "pymupdf4llm";
|
||||
version = "0.3.4";
|
||||
pyproject = true;
|
||||
@@ -15,11 +15,11 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "pymupdf";
|
||||
repo = "RAG";
|
||||
tag = "v${version}";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-SgJ47jkE6GcSXVsOMOx8Hm+Ce6pCAjLEhdxGeJEu6DQ=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/pymupdf4llm";
|
||||
sourceRoot = "${finalAttrs.src.name}/pymupdf4llm";
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
@@ -53,8 +53,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "PyMuPDF Utilities for LLM/RAG - converts PDF pages to Markdown format for Retrieval-Augmented Generation";
|
||||
homepage = "https://github.com/pymupdf/RAG";
|
||||
changelog = "https://github.com/pymupdf/RAG/blob/${src.tag}/CHANGES.md";
|
||||
changelog = "https://github.com/pymupdf/RAG/blob/${finalAttrs.src.tag}/CHANGES.md";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ ryota2357 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user