pythonPackages.pymupdf: init at 1.16.2

python bindings for mupdf. Provides the fitz module for
https://github.com/dsanson/termpdf.py that I am trying to package.
This commit is contained in:
Matthieu Coudron 2019-09-19 18:14:27 +09:00 committed by Matthieu Coudron
parent b16a186529
commit afd6b04f47
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, mupdf, swig }:
buildPythonPackage rec {
pname = "PyMuPDF";
version = "1.16.2";
src = fetchPypi {
inherit pname version;
sha256 = "1bidybzkjsc0kdd18xnhz97p70br8xh8whzwydp3a5m411cm00mg";
};
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;
};
}

View File

@ -855,6 +855,8 @@ in {
pymysql = callPackage ../development/python-modules/pymysql { };
pymupdf = callPackage ../development/python-modules/pymupdf { };
Pmw = callPackage ../development/python-modules/Pmw { };
py_stringmatching = callPackage ../development/python-modules/py_stringmatching { };