anchor.diff:      poppler_utils libpng imagemagick libjpeg
       fontconfig podofo qtbase chmlib icu sqlite libusb1 libmtp xdg_utils wrapGAppsHook
     ] ++ (with python2Packages; [
  -    html5lib_0_9999999 # needs to be before mechanize ?
  -    apsw cssselect cssutils dateutil lxml mechanize netifaces pillow
  +    apsw cssselect cssutils dateutil html5-parser lxml mechanize netifaces pillow
       python pyqt5 sip
       regex msgpack
       # the following are distributed with calibre, but we use upstream instead
  -    chardet cherrypy odfpy routes
  +    odfpy
     ]);
   
     installPhase = ''
  
positive.code:     for entry in $out/share/applications/*.desktop; do
        substituteAllInPlace $entry
      done
  
      runHook postInstall
    '';
  
negative.code: 
      # Remove unneeded files and libs
      rm -rf resources/calibre-portable.* \
             src/odf
    '';
  
    dontUseQmakeConfigure = true;
  