mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
Merge pull request #222573 from wegank/pymupdf-darwin
python310Packages.pymupdf: fix build on darwin
This commit is contained in:
commit
165a7c6ea2
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user