8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
27 lines
719 B
Nix
27 lines
719 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, mupdf, swig }:
|
|
buildPythonPackage rec {
|
|
pname = "PyMuPDF";
|
|
version = "1.16.16";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1rw4wjbsp8pnkkqcn097psjd6qinv70pjzvrbns04maybhn4ni6v";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|