nixpkgs/pkgs/development/python-modules/pymupdf/default.nix
Markus S. Wamser b20b08dc87 pythonPackages.PyMuPDF: 1.16.18 -> 1.17.0
Update for compatibility with MuPDF 1.17
2020-05-26 08:36:44 +02:00

28 lines
730 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, mupdf, swig }:
buildPythonPackage rec {
pname = "PyMuPDF";
version = "1.17.0";
src = fetchPypi {
inherit pname version;
sha256 = "0de92a8fb65db6e661594cc5865a340a2daac3cb9bb58e030820769ece1343c1";
};
patchPhase = ''
substituteInPlace setup.py \
--replace '/usr/include/mupdf' ${mupdf.dev}/include/mupdf
'';
nativeBuildInputs = [ swig ];
buildInputs = [ mupdf ];
doCheck = false;
meta = with stdenv.lib; {
description = "Python bindings for MuPDF's rendering library.";
homepage = "https://github.com/pymupdf/PyMuPDF";
maintainers = with maintainers; [ teto ];
license = licenses.agpl3;
platforms = platforms.linux;
};
}