3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #201110 from r-ryantm/auto-update/python310Packages.pymupdf

python310Packages.pymupdf: 1.20.2 -> 1.21.0
This commit is contained in:
Fabian Affolter 2022-12-04 23:41:37 +01:00 committed by GitHub
commit 3e02e1ec38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,34 +9,52 @@
, jbig2dec
, libjpeg_turbo
, gumbo
, pythonOlder
}:
buildPythonPackage rec {
pname = "pymupdf";
version = "1.20.2";
version = "1.21.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "PyMuPDF";
inherit version;
sha256 = "sha256-Au7fAfV8a6+16GZ86gCIotJSJkPEcQDxkIvsOmioSIg=";
hash = "sha256-pj38KJ4SeharYDEO5gBf6DEhx6l/fBINtoj5KByeXQ8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace '/usr/include/mupdf' ${mupdf.dev}/include/mupdf
'';
nativeBuildInputs = [ swig ];
buildInputs = [ mupdf freetype harfbuzz openjpeg jbig2dec libjpeg_turbo gumbo ];
nativeBuildInputs = [
swig
];
buildInputs = [
mupdf
freetype
harfbuzz
openjpeg
jbig2dec
libjpeg_turbo
gumbo
];
doCheck = false;
pythonImportsCheck = [ "fitz" ];
pythonImportsCheck = [
"fitz"
];
meta = with lib; {
description = "Python bindings for MuPDF's rendering library.";
description = "Python bindings for MuPDF's rendering library";
homepage = "https://github.com/pymupdf/PyMuPDF";
maintainers = with maintainers; [ teto ];
changelog = "https://github.com/pymupdf/PyMuPDF/releases/tag/${version}";
license = licenses.agpl3Only;
maintainers = with maintainers; [ teto ];
platforms = platforms.linux;
};
}