Skip to content

pymupdf: bundle mupdf package - #352845

Closed
elohmeier wants to merge 1 commit into
NixOS:masterfrom
elohmeier:pymupdf-bundle-mupdf
Closed

elohmeier wants to merge 1 commit into
NixOS:masterfrom
elohmeier:pymupdf-bundle-mupdf

Conversation

@elohmeier

Copy link
Copy Markdown
Contributor

This ensures the mupdf Python module which is imported by the pymupdf module is present, without relying on propagatedBuildInputs (which is also currently broken, see fix in #334596). This enables compatibility with e.g. uv2nix / pyproject.nix and is more similar to the way the upstream PyPI package works.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label Nov 1, 2024
@elohmeier

Copy link
Copy Markdown
Contributor Author

Fixes #332384

@ofborg
ofborg Bot requested a review from teto November 1, 2024 17:05
@ofborg ofborg Bot added 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Nov 1, 2024
@FliegendeWurst

Copy link
Copy Markdown
Member

@ofborg build python312Packages.pymupdf

'')
+ ''
# bundle the `mupdf` module provided by mupdf-cxx
cp -r ${lib.getLib mupdf-cxx}/${python.sitePackages}/mupdf $out/${python.sitePackages}/mupdf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also use ln -s to save space.

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one person. label Nov 19, 2024
@dotlambda

Copy link
Copy Markdown
Member

I don't see why this is any better than #334596.

@wegank wegank added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jun 9, 2025
@phanirithvij

Copy link
Copy Markdown
Member

@elohmeier there is a merge conflict.

@nixpkgs-ci nixpkgs-ci Bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 10, 2025
@phanirithvij

phanirithvij commented Dec 16, 2025 •

Copy link
Copy Markdown
Member

I can't mark it as draft, so closing this as an alternative fix was made. see #412508 (ref #332384 (comment))

do re-open if something can still be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.status: merge conflict This PR has merge conflicts with the target branch 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants