From edf9bcdbab848d43404d464ced2952ae178c8b97 Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Fri, 10 Apr 2015 00:21:24 -0400 Subject: pil, pillow: Patch out Darwin impurities --- pkgs/top-level/python-packages.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5f79ddea816d..0a52fd22443c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8010,6 +8010,12 @@ let -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 ;' + '' + # Remove impurities + + stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace setup.py \ + --replace '"/Library/Frameworks",' "" \ + --replace '"/System/Library/Frameworks"' "" ''; checkPhase = "${python}/bin/${python.executable} selftest.py"; @@ -8051,10 +8057,16 @@ let s|^LCMS_ROOT =.*$|LCMS_ROOT = _lib_include("${pkgs.libwebp}")|g ; s|^TIFF_ROOT =.*$|TIFF_ROOT = _lib_include("${pkgs.libtiff}")|g ; s|^TCL_ROOT=.*$|TCL_ROOT = _lib_include("${pkgs.tcl}")|g ;' + '' + # Remove impurities + + stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace setup.py \ + --replace '"/Library/Frameworks",' "" \ + --replace '"/System/Library/Frameworks"' "" ''; meta = { - homepage = http://python-imaging.github.com/Pillow; + homepage = "https://python-pillow.github.io/"; description = "Fork of The Python Imaging Library (PIL)"; -- cgit 1.4.1