pillow: 1.7.8 -> 2.1.0, add webp and tiff support
This commit is contained in:
parent
386bef322d
commit
7186fd3f71
@ -3470,20 +3470,23 @@ pythonPackages = python.modules // rec {
|
|||||||
|
|
||||||
|
|
||||||
pillow = buildPythonPackage rec {
|
pillow = buildPythonPackage rec {
|
||||||
name = "Pillow-1.7.8";
|
name = "Pillow-2.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://pypi.python.org/packages/source/P/Pillow/${name}.zip";
|
url = "http://pypi.python.org/packages/source/P/Pillow/${name}.zip";
|
||||||
md5 = "41d8688d4db72673069a6dc63b5289d6";
|
md5 = "ec630d8ae15d4a3c4ae7b7efdeac8200";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pkgs.freetype pkgs.libjpeg pkgs.unzip pkgs.zlib ];
|
buildInputs = [ pkgs.freetype pkgs.libjpeg pkgs.unzip pkgs.zlib pkgs.libtiff pkgs.libwebp ];
|
||||||
|
|
||||||
|
# NOTE: we use LCMS_ROOT as WEBP root since there is not other setting for webp.
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
sed -i "setup.py" \
|
sed -i "setup.py" \
|
||||||
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = _lib_include("${pkgs.freetype}")|g ;
|
-e 's|^FREETYPE_ROOT =.*$|FREETYPE_ROOT = _lib_include("${pkgs.freetype}")|g ;
|
||||||
s|^JPEG_ROOT =.*$|JPEG_ROOT = _lib_include("${pkgs.libjpeg}")|g ;
|
s|^JPEG_ROOT =.*$|JPEG_ROOT = _lib_include("${pkgs.libjpeg}")|g ;
|
||||||
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = _lib_include("${pkgs.zlib}")|g ;'
|
s|^ZLIB_ROOT =.*$|ZLIB_ROOT = _lib_include("${pkgs.zlib}")|g ;
|
||||||
|
s|^LCMS_ROOT =.*$|LCMS_ROOT = _lib_include("${pkgs.libwebp}")|g ;
|
||||||
|
s|^TIFF_ROOT =.*$|TIFF_ROOT = _lib_include("${pkgs.libtiff}")|g ;'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user