diff options
author | Spencer Whitt <sw@swhitt.me> | 2015-04-10 00:21:24 -0400 |
---|---|---|
committer | Spencer Whitt <sw@swhitt.me> | 2015-04-18 19:58:02 -0400 |
commit | edf9bcdbab848d43404d464ced2952ae178c8b97 (patch) | |
tree | fe4198ce9c10b3ac400b7ec577c83f40264dcd46 /pkgs | |
parent | fecba03ba6f055f6aae92ee408a19f6e88acebb2 (diff) | |
download | nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.tar nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.tar.gz nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.tar.bz2 nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.tar.lz nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.tar.xz nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.tar.zst nixlib-edf9bcdbab848d43404d464ced2952ae178c8b97.zip |
pil, pillow: Patch out Darwin impurities
Diffstat (limited to 'pkgs')
-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 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)"; |