Merge pull request #222573 from wegank/pymupdf-darwin

python310Packages.pymupdf: fix build on darwin
This commit is contained in:
Weijia Wang 2023-03-23 07:33:05 +02:00 committed by GitHub
commit 165a7c6ea2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,18 @@
{ lib
, stdenv
, buildPythonPackage
, pythonOlder
, fetchPypi
, mupdf
, swig
, xcbuild
, mupdf
, freetype
, harfbuzz
, openjpeg
, jbig2dec
, libjpeg_turbo
, gumbo
, pythonOlder
, memstreamHook
}:
buildPythonPackage rec {
@ -31,6 +34,8 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [
swig
] ++ lib.optionals stdenv.isDarwin [
xcbuild
];
buildInputs = [
@ -41,6 +46,8 @@ buildPythonPackage rec {
jbig2dec
libjpeg_turbo
gumbo
] ++ lib.optionals (stdenv.system == "x86_64-darwin") [
memstreamHook
];
doCheck = false;
@ -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;
};
}