diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-04-19 04:30:18 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2015-04-19 04:30:18 +0300 |
commit | 63d4512d3311b98571f9c6003ed95b9e66fb1b5b (patch) | |
tree | 9aac65f6816c18bfb2470d45f4656306e314c4a3 /pkgs/top-level | |
parent | ea5999cd77499865115e35618e5616140b707a28 (diff) | |
parent | edf9bcdbab848d43404d464ced2952ae178c8b97 (diff) |
Merge pull request #7455 from spwhitt/pil
pil, pillow: Patch out Darwin impurities
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 525df740e24eb..94411bbf3aad8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8156,6 +8156,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"; @@ -8197,10 +8203,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)"; |