Skip to content

Commit

Permalink
Merge pull request #222573 from wegank/pymupdf-darwin
Browse files Browse the repository at this point in the history
python310Packages.pymupdf: fix build on darwin
  • Loading branch information
wegank authored Mar 23, 2023
2 parents baeb7fb + 50ddfb4 commit 165a7c6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkgs/development/python-modules/pymupdf/default.nix
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, mupdf
, swig
, xcbuild
, mupdf
, freetype
, harfbuzz
, openjpeg
, jbig2dec
, libjpeg_turbo
, gumbo
, pythonOlder
, memstreamHook
}:

buildPythonPackage rec {
Expand All @@ -31,6 +34,8 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [
swig
] ++ lib.optionals stdenv.isDarwin [
xcbuild
];

buildInputs = [
Expand All @@ -41,6 +46,8 @@ buildPythonPackage rec {
jbig2dec
libjpeg_turbo
gumbo
] ++ lib.optionals (stdenv.system == "x86_64-darwin") [
memstreamHook
];

doCheck = false;
Expand All @@ -55,6 +62,6 @@ buildPythonPackage rec {
changelog = "https://github.com/pymupdf/PyMuPDF/releases/tag/${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ teto ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

0 comments on commit 165a7c6

Please sign in to comment.