From cd44a4ad1e1dea6ea9042e0b3de72f84588bcc84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 17 Oct 2024 21:14:46 -0700 Subject: [PATCH] python312Packages.pdf2docx: modernize --- .../python-modules/pdf2docx/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pdf2docx/default.nix b/pkgs/development/python-modules/pdf2docx/default.nix index 6096c5f8edaa..6cdfb3a45ea2 100644 --- a/pkgs/development/python-modules/pdf2docx/default.nix +++ b/pkgs/development/python-modules/pdf2docx/default.nix @@ -12,6 +12,7 @@ opencv4, tkinter, python-docx, + setuptools, }: let version = "0.5.8"; @@ -19,25 +20,25 @@ in buildPythonPackage { pname = "pdf2docx"; inherit version; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { - owner = "dothinking"; + owner = "ArtifexSoftware"; repo = "pdf2docx"; rev = "refs/tags/v${version}"; hash = "sha256-tMITDm2NkxWS+H/hhd2LlaPbyuI86ZKaALqqHJqb8V0="; }; - nativeBuildInputs = [ + build-system = [ pip + setuptools ]; pythonRemoveDeps = [ "opencv-python" ]; preBuild = "echo '${version}' > version.txt"; - propagatedBuildInputs = [ - tkinter + dependencies = [ pymupdf fire fonttools @@ -59,8 +60,8 @@ buildPythonPackage { meta = with lib; { description = "Convert PDF to DOCX"; mainProgram = "pdf2docx"; - homepage = "https://github.com/dothinking/pdf2docx"; - changelog = "https://github.com/dothinking/pdf2docx/releases/tag/v${version}"; + homepage = "https://github.com/ArtifexSoftware/pdf2docx"; + changelog = "https://github.com/ArtifexSoftware/pdf2docx/releases/tag/v${version}"; license = licenses.gpl3Only; maintainers = with maintainers; [ happysalada ]; };