@@ -13212,50 +13212,6 @@ in modules // {
1321213212 };
1321313213 };
1321413214
13215−
13216− pil = buildPythonPackage rec {
13217− name = "PIL-${version}";
13218− version = "1.1.7";
13219−
13220− src = pkgs.fetchurl {
13221− url = "http://effbot.org/downloads/Imaging-${version}.tar.gz";
13222− sha256 = "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9";
13223− };
13224−
13225− buildInputs = with self; [ python pkgs.libjpeg pkgs.zlib pkgs.freetype ];
13226−
13227− disabled = isPy3k;
13228−
13229− postInstall = "ln -s $out/${python.sitePackages} $out/${python.sitePackages}/PIL";
13230−
13231− preConfigure = ''
13232− sed -i "setup.py" \
13233− -e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
13234− s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${pkgs.libjpeg}")|g ;
13235− s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;'
13236− '' + stdenv.lib.optionalString stdenv.isDarwin ''
13237− # Remove impurities
13238− substituteInPlace setup.py \
13239− --replace '"/Library/Frameworks",' "" \
13240− --replace '"/System/Library/Frameworks"' ""
13241− '';
13242−
13243− checkPhase = "${python.interpreter} selftest.py";
13244−
13245− meta = {
13246− homepage = http://www.pythonware.com/products/pil/;
13247− description = "The Python Imaging Library (PIL)";
13248− longDescription = ''
13249− The Python Imaging Library (PIL) adds image processing
13250− capabilities to your Python interpreter. This library
13251− supports many file formats, and provides powerful image
13252− processing and graphics capabilities.
13253− '';
13254− license = "http://www.pythonware.com/products/pil/license.htm";
13255− };
13256− };
13257−
13258−
1325913215 pillow = buildPythonPackage rec {
1326013216 name = "Pillow-2.9.0";
1326113217