Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 27 lines 729 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, mupdf, swig }: 2buildPythonPackage rec { 3 pname = "PyMuPDF"; 4 version = "1.16.10"; 5 6 src = fetchPypi { 7 inherit pname version; 8 sha256 = "d7893954f97fa6087629f3875f3be066dab51302e7c73f4c98c0516a8e2893fb"; 9 }; 10 11 patchPhase = '' 12 substituteInPlace setup.py \ 13 --replace '/usr/include/mupdf' ${mupdf.dev}/include/mupdf 14 ''; 15 nativeBuildInputs = [ swig ]; 16 buildInputs = [ mupdf ]; 17 18 doCheck = false; 19 20 meta = with stdenv.lib; { 21 description = "Python bindings for MuPDF's rendering library."; 22 homepage = https://github.com/pymupdf/PyMuPDF; 23 maintainers = with maintainers; [ teto ]; 24 license = licenses.agpl3; 25 platforms = platforms.linux; 26 }; 27}