python: remove PIL

Remove it once and for all.
This commit is contained in:
Frederik Rietdijk 2015-12-08 16:07:29 +01:00
parent 9455476f47
commit 91adf1bb65
2 changed files with 0 additions and 46 deletions

View File

@ -8981,8 +8981,6 @@ let
numeric = callPackage ../development/python-modules/numeric { };
pil = pythonPackages.pil;
psyco = callPackage ../development/python-modules/psyco { };
pycairo = pythonPackages.pycairo;

View File

@ -13212,50 +13212,6 @@ in modules // {
};
};
pil = buildPythonPackage rec {
name = "PIL-${version}";
version = "1.1.7";
src = pkgs.fetchurl {
url = "http://effbot.org/downloads/Imaging-${version}.tar.gz";
sha256 = "04aj80jhfbmxqzvmq40zfi4z3cw6vi01m3wkk6diz3lc971cfnw9";
};
buildInputs = with self; [ python pkgs.libjpeg pkgs.zlib pkgs.freetype ];
disabled = isPy3k;
postInstall = "ln -s $out/${python.sitePackages} $out/${python.sitePackages}/PIL";
preConfigure = ''
sed -i "setup.py" \
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = libinclude("${pkgs.freetype}")|g ;
s|^JPEG_ROOT =.*$|JPEG_ROOT = libinclude("${pkgs.libjpeg}")|g ;
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = libinclude("${pkgs.zlib}")|g ;'
'' + stdenv.lib.optionalString stdenv.isDarwin ''
# Remove impurities
substituteInPlace setup.py \
--replace '"/Library/Frameworks",' "" \
--replace '"/System/Library/Frameworks"' ""
'';
checkPhase = "${python.interpreter} selftest.py";
meta = {
homepage = http://www.pythonware.com/products/pil/;
description = "The Python Imaging Library (PIL)";
longDescription = ''
The Python Imaging Library (PIL) adds image processing
capabilities to your Python interpreter. This library
supports many file formats, and provides powerful image
processing and graphics capabilities.
'';
license = "http://www.pythonware.com/products/pil/license.htm";
};
};
pillow = buildPythonPackage rec {
name = "Pillow-2.9.0";