python311Packages.pdf2docx 0 -> 1 attrpath: python311Packages.pdf2docx Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/j7b765rv0p9yk29zzh7qbwk5j05l10kq-packages.json.drv building '/nix/store/j7b765rv0p9yk29zzh7qbwk5j05l10kq-packages.json.drv'... Going to be running update for following packages: - python3.11-pdf2docx-0.5.7 Press Enter key to continue... Running update for: - python3.11-pdf2docx-0.5.7: UPDATING ... - python3.11-pdf2docx-0.5.7: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/pdf2docx/default.nix b/pkgs/development/python-modules/pdf2docx/default.nix index 3873f8beacf0..88372271aa52 100644 --- a/pkgs/development/python-modules/pdf2docx/default.nix +++ b/pkgs/development/python-modules/pdf2docx/default.nix @@ -16,7 +16,7 @@ , python-docx }: let - version = "0.5.7"; + version = "0.5.8"; in buildPythonPackage { pname = "pdf2docx"; @@ -27,7 +27,7 @@ buildPythonPackage { owner = "dothinking"; repo = "pdf2docx"; rev = "refs/tags/v${version}"; - hash = "sha256-GDftANn+ioaNR28VfRFDuFgdKoy7D4xiy0ezvWJ3zy0="; + hash = "sha256-tMITDm2NkxWS+H/hhd2LlaPbyuI86ZKaALqqHJqb8V0="; }; nativeBuildInputs = [ No auto update branch exists Old version 0.5.7" not present in staging derivation file with contents: { stdenv , lib , fetchFromGitHub , python , buildPythonPackage , pythonRelaxDepsHook , imagemagick , pip , pytestCheckHook , pymupdf , fire , fonttools , numpy , opencv4 , tkinter , python-docx }: let version = "0.5.8"; in buildPythonPackage { pname = "pdf2docx"; inherit version; format = "setuptools"; src = fetchFromGitHub { owner = "dothinking"; repo = "pdf2docx"; rev = "refs/tags/v${version}"; hash = "sha256-tMITDm2NkxWS+H/hhd2LlaPbyuI86ZKaALqqHJqb8V0="; }; nativeBuildInputs = [ pip pythonRelaxDepsHook imagemagick ]; pythonRemoveDeps = [ "opencv-python" ]; preBuild = "echo '${version}' > version.txt"; propagatedBuildInputs = [ tkinter pymupdf fire fonttools numpy opencv4 python-docx ]; postInstall = lib.optionalString stdenv.isLinux '' # on linux the icon file can only be xbm format convert $out/${python.sitePackages}/pdf2docx/gui/icon.ico \ $out/${python.sitePackages}/pdf2docx/gui/icon.xbm substituteInPlace $out/${python.sitePackages}/pdf2docx/gui/App.py \ --replace 'icon.ico' 'icon.xbm' \ --replace 'iconbitmap(icon_path)' "iconbitmap(f'@{icon_path}')" ''; nativeCheckInputs = [ pytestCheckHook ]; pytestFlagsArray = [ "-v" "./test/test.py::TestConversion" ]; # Test fails due to "RuntimeError: cannot find builtin font with name 'Arial'": disabledTests = [ "test_unnamed_fonts" ]; 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}"; license = licenses.gpl3Only; maintainers = with maintainers; [ happysalada ]; }; }