@@ -8214,6 +8214,37 @@ in modules // {
82148214 inherit pythonOlder;
82158215 };
82168216
8217+ pypoppler = buildPythonPackage rec {
8218+ name = "pypoppler-${version}";
8219+ version = "0.12.2";
8220+
8221+ src = pkgs.fetchurl {
8222+ url = "mirror://pypi/p/pypoppler/${name}.tar.gz";
8223+ sha256 = "47e6ac99e5b114b9abf2d1dd1bca06f22c028d025432512989f659142470810f";
8224+ };
8225+
8226+ NIX_CFLAGS_COMPILE="-I${pkgs.poppler.dev}/include/poppler/";
8227+ buildInputs = [ pkgs.pkgconfig pkgs.poppler.dev ];
8228+ propagatedBuildInputs = with self; [ pycairo pygobject2 ];
8229+
8230+ patches = [
8231+ ../development/python-modules/pypoppler-0.39.0.patch
8232+ ../development/python-modules/pypoppler-poppler.c.patch
8233+ ];
8234+
8235+ # Not supported.
8236+ disabled = isPy3k;
8237+
8238+ # No tests in archive
8239+ doCheck = false;
8240+
8241+ meta = {
8242+ homepage = https://code.launchpad.net/~mriedesel/poppler-python/main;
8243+ description = "Python bindings for poppler-glib, unofficial branch including bug fixes, and removal of gtk dependencies";
8244+ license = licenses.gpl2;
8245+ };
8246+ };
8247+
82178248 python-axolotl = buildPythonPackage rec {
82188249 name = "python-axolotl-${version}";
82198250 version = "0.1.7";