From a044b590fcc77f9272ed4de227a79f0470841e5e Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:10:40 +0100 Subject: [PATCH 01/13] mcomix: use pillow instead of pil --- pkgs/applications/graphics/mcomix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/mcomix/default.nix b/pkgs/applications/graphics/mcomix/default.nix index 5c22854512aa..069a4bace286 100644 --- a/pkgs/applications/graphics/mcomix/default.nix +++ b/pkgs/applications/graphics/mcomix/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, buildPythonPackage, pygtk, pil, python27Packages }: +{ stdenv, fetchurl, buildPythonPackage, python27Packages }: buildPythonPackage rec { namePrefix = ""; @@ -9,7 +9,7 @@ buildPythonPackage rec { sha256 = "0k3pqbvk08kb1nr0qldaj9bc7ca6rvcycgfi2n7gqmsirq5kscys"; }; - pythonPath = [ pygtk pil python27Packages.sqlite3 ]; + propagatedBuildInputs = with python27Packages; [ pygtk pillow sqlite3 ]; meta = { description = "Image viewer designed to handle comic books"; From 60e2dced1a698e5d918c4b6a91778fdf5cb23c20 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:11:00 +0100 Subject: [PATCH 02/13] mirage: use pillow instead of pil --- pkgs/applications/graphics/mirage/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/graphics/mirage/default.nix b/pkgs/applications/graphics/mirage/default.nix index 20f7460f7a16..c4b14388d1ba 100644 --- a/pkgs/applications/graphics/mirage/default.nix +++ b/pkgs/applications/graphics/mirage/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, buildPythonPackage, python, pygtk, pil, libX11, gettext }: +{ stdenv, fetchurl, buildPythonPackage, python, pygtk, pillow, libX11, gettext }: buildPythonPackage rec { namePrefix = ""; @@ -17,7 +17,7 @@ buildPythonPackage rec { sed -i "s@/usr/local/share/locale@$out/share/locale@" mirage.py ''; - pythonPath = [ pygtk pil ]; + propagatedBuildInputs = [ pygtk pillow ]; meta = { description = "Simple image viewer written in PyGTK"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fe50da49b0ec..eefd5e96f089 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12371,7 +12371,10 @@ let mimms = callPackage ../applications/audio/mimms {}; - mirage = callPackage ../applications/graphics/mirage {}; + mirage = callPackage ../applications/graphics/mirage { + inherit (pythonPackages) pygtk; + inherit (pythonPackages) pillow; + }; mixxx = callPackage ../applications/audio/mixxx { inherit (vamp) vampSDK; From c709363e2365de8c07c47056b1a0efa7189dd215 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:11:49 +0100 Subject: [PATCH 03/13] python mwlib: use pillow instead of pil --- pkgs/top-level/python-packages.nix | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b9247fc44049..8621a8a8f115 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5083,7 +5083,7 @@ in modules // { sha256 = "1dnmnkc21zdfaypskbpvkwl0wpkpn0nagj1fc338w64mbxrk8ny7"; }; - commonDeps = with self; + propagatedBuildInputs = with self; [ apipkg bottle @@ -5099,19 +5099,7 @@ in modules // { simplejson sqlite3dbm timelib - ]; - - pythonPath = commonDeps ++ - [ - modules.sqlite3 - ]; - - propagatedBuildInputs = commonDeps; - - buildInputs = with self; - [ - pil - ] ++ propagatedBuildInputs; + ] ++ optionals (!isPy3k) [ modules.sqlite3 ]; meta = { description = "Library for parsing MediaWiki articles and converting them to different output formats"; From 0c57716ab9348d273f11dc413e82d6ae7a088cf2 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:12:17 +0100 Subject: [PATCH 04/13] impressive: use pillow instead of pil --- pkgs/applications/office/impressive/default.nix | 6 +++--- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/office/impressive/default.nix b/pkgs/applications/office/impressive/default.nix index 8cc7e9b32536..75fdc703ec92 100644 --- a/pkgs/applications/office/impressive/default.nix +++ b/pkgs/applications/office/impressive/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, python, makeWrapper, lib -, xpdf, pil, pyopengl, pygame +, xpdf, pillow, pyopengl, pygame , setuptools, mesa, freeglut }: let version = "0.10.5"; @@ -17,7 +17,7 @@ in # Note: We need to have `setuptools' in the path to be able to use # PyOpenGL. - buildInputs = [ makeWrapper xpdf pil pyopengl pygame ]; + buildInputs = [ makeWrapper xpdf pillow pyopengl pygame ]; configurePhase = '' sed -i "impressive.py" \ @@ -44,7 +44,7 @@ in ${lib.concatStringsSep ":" (map (path: path + "/lib/${python.libPrefix}/site-packages") - [ pil pyopengl pygame setuptools ])} \ + [ pillow pyopengl pygame setuptools ])} \ --prefix LIBRARY_PATH ":" "${mesa}/lib:${freeglut}/lib" ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eefd5e96f089..648162b0cf0b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12082,6 +12082,7 @@ let impressive = callPackage ../applications/office/impressive { # XXX These are the PyOpenGL dependencies, which we need here. inherit (pythonPackages) pyopengl; + inherit (pythonPackages) pillow; }; inferno = callPackage_i686 ../applications/inferno { }; From d9758cf3b4f0cdf479c4bf591b5fd05611e9ef5e Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:12:53 +0100 Subject: [PATCH 05/13] calibre: use pillow instead of pil --- pkgs/applications/misc/calibre/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index a967285c941f..950d7032882b 100644 --- a/pkgs/applications/misc/calibre/default.nix +++ b/pkgs/applications/misc/calibre/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, python, pyqt5, sip_4_16, poppler_utils, pkgconfig, libpng , imagemagick, libjpeg, fontconfig, podofo, qt5, icu, sqlite -, pil, makeWrapper, unrar, chmlib, pythonPackages, xz, libusb1, libmtp +, makeWrapper, unrar, chmlib, pythonPackages, xz, libusb1, libmtp , xdg_utils }: @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { buildInputs = [ python pyqt5 sip_4_16 poppler_utils libpng imagemagick libjpeg - fontconfig podofo qt5.base pil chmlib icu sqlite libusb1 libmtp xdg_utils + fontconfig podofo qt5.base chmlib icu sqlite libusb1 libmtp xdg_utils pythonPackages.mechanize pythonPackages.lxml pythonPackages.dateutil pythonPackages.cssutils pythonPackages.beautifulsoup pythonPackages.pillow pythonPackages.sqlite3 pythonPackages.netifaces pythonPackages.apsw From 47dc242b9db1ff5a6c28459770a5191269a46274 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:14:45 +0100 Subject: [PATCH 06/13] pdfread: broken, not found --- pkgs/tools/graphics/pdfread/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/tools/graphics/pdfread/default.nix b/pkgs/tools/graphics/pdfread/default.nix index f35553ea168f..3074b229c55d 100644 --- a/pkgs/tools/graphics/pdfread/default.nix +++ b/pkgs/tools/graphics/pdfread/default.nix @@ -15,6 +15,8 @@ stdenv.mkDerivation { buildInputs = [ unzip python makeWrapper ]; + broken = true; # Not found. + phases = "unpackPhase patchPhase installPhase"; unpackPhase = '' From 4bcfa144802b0003bf64a5378ccb6297e87d7997 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:14:59 +0100 Subject: [PATCH 07/13] pdfread: use pillow instead of pil --- pkgs/tools/graphics/pdfread/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/graphics/pdfread/default.nix b/pkgs/tools/graphics/pdfread/default.nix index 3074b229c55d..69ab7f27e343 100644 --- a/pkgs/tools/graphics/pdfread/default.nix +++ b/pkgs/tools/graphics/pdfread/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, unzip, python, makeWrapper, ghostscript, pngnq, pil, djvulibre +{stdenv, fetchurl, unzip, python, makeWrapper, ghostscript, pngnq, pillow, djvulibre , optipng, unrar}: stdenv.mkDerivation { @@ -38,7 +38,7 @@ stdenv.mkDerivation { mkdir -p $PYDIR cp -R *.py pylrs $PYDIR - wrapProgram $out/bin/pdfread.py --prefix PYTHONPATH : $PYTHONPATH:${pil}/$LIBSUFFIX/PIL:$PYDIR \ + wrapProgram $out/bin/pdfread.py --prefix PYTHONPATH : $PYTHONPATH:${pillow}/$LIBSUFFIX/PIL:$PYDIR \ --prefix PATH : ${ghostscript}/bin:${pngnq}/bin:${djvulibre}/bin:${unrar}/bin:${optipng}/bin ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 648162b0cf0b..ccf0241cee55 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2671,7 +2671,9 @@ let jbig2enc = callPackage ../tools/graphics/jbig2enc { }; - pdfread = callPackage ../tools/graphics/pdfread { }; + pdfread = callPackage ../tools/graphics/pdfread { + inherit (pythonPackages) pillow; + }; briss = callPackage ../tools/graphics/briss { }; From 9cc4bb7f4ca71da3b57014ba58404ba69a3bce9b Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:15:14 +0100 Subject: [PATCH 08/13] xpra: use pillow instead of pil --- pkgs/tools/X11/xpra/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/X11/xpra/default.nix b/pkgs/tools/X11/xpra/default.nix index 5ef80e887cf6..b1fdd96adb5d 100644 --- a/pkgs/tools/X11/xpra/default.nix +++ b/pkgs/tools/X11/xpra/default.nix @@ -1,8 +1,8 @@ { stdenv, fetchurl, buildPythonPackage, pythonPackages , python, cython, pkgconfig -, xorg, gtk, glib, pango, cairo, gdk_pixbuf, pygtk, atk, pygobject, pycairo +, xorg, gtk, glib, pango, cairo, gdk_pixbuf, atk, pycairo , makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config -, ffmpeg, x264, libvpx, pil, libwebp +, ffmpeg, x264, libvpx, libwebp , libfakeXinerama }: buildPythonPackage rec { @@ -29,8 +29,8 @@ buildPythonPackage rec { makeWrapper ]; - propagatedBuildInputs = [ - pil pygtk pygobject pythonPackages.rencode + propagatedBuildInputs = with pythonPackages; [ + pillow pygtk pygobject ]; postPatch = '' From 8d18e4c9f8387ee65ed85af3db59ff0dec513225 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:21:41 +0100 Subject: [PATCH 09/13] tpm thePenguinPachine: use pillow instead of pil Was already broken, and still is. --- pkgs/games/thePenguinMachine/default.nix | 8 ++++---- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/games/thePenguinMachine/default.nix b/pkgs/games/thePenguinMachine/default.nix index 479004a9af4d..934b712fe121 100644 --- a/pkgs/games/thePenguinMachine/default.nix +++ b/pkgs/games/thePenguinMachine/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, python, pil, pygame, SDL} @ args: with args; +{stdenv, fetchurl, python, pillow, pygame, SDL} @ args: with args; stdenv.mkDerivation { name = "thePenguinMachine"; @@ -9,7 +9,7 @@ stdenv.mkDerivation { broken = true; # Not found - buildInputs = [python pil pygame SDL]; + buildInputs = [python pillow pygame SDL]; configurePhase = '' sed -e "/includes = /aincludes.append('${SDL}/include/SDL')" -i setup.py; @@ -32,9 +32,9 @@ stdenv.mkDerivation { cp -r . "$out"/share/tpm/build-dir mkdir -p "$out/bin" echo "#! /bin/sh" >> "$out/bin/tpm" - echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pil}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" + echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pillow}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" echo "cd \"$out/share/tpm/build-dir\"" >> "$out/bin/tpm" - echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pil}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" + echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pillow}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" echo "${python}/bin/python \"$out\"/share/tpm/build-dir/ThePenguinMachine.py \"\$@\"" >> "$out/bin/tpm" chmod a+x "$out/bin/tpm" ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ccf0241cee55..dd2f0130e886 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14223,7 +14223,9 @@ let tome4 = callPackage ../games/tome4 { }; - tpm = callPackage ../games/thePenguinMachine { }; + tpm = callPackage ../games/thePenguinMachine { + inherit (pythonPackages) pillow; + }; trackballs = callPackage ../games/trackballs { debug = false; From 6c7af844498f5dd8da81fd3e6374ecfce6f17ae8 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:32:17 +0100 Subject: [PATCH 10/13] tpm thePenguinMachine: add comment about possible source --- pkgs/games/thePenguinMachine/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/games/thePenguinMachine/default.nix b/pkgs/games/thePenguinMachine/default.nix index 934b712fe121..6829c084ce9e 100644 --- a/pkgs/games/thePenguinMachine/default.nix +++ b/pkgs/games/thePenguinMachine/default.nix @@ -6,6 +6,9 @@ stdenv.mkDerivation { url = http://www.migniot.com/matrix/projects/thepenguinmachine/ThePenguinMachine.tar.gz; sha256 = "09ljks8vj75g00h3azc83yllbfsrxwmv1c9g32gylcmsshik0dqv"; }; + # Perhaps the following source works? See http://tpm.seul.org/ + # url = http://tpm.seul.org/TPM.tar.bz2; + # sha256 = "8fc2f2961a54005cd7f349dd859823addf05b01d0e3b3e83928b5b75460930fa"; broken = true; # Not found From e1f2ddefd93a2064aedc7952654ecddba93ed524 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 15:49:28 +0100 Subject: [PATCH 11/13] tpm thePenguinMachine: remove package because source is unavailable --- pkgs/games/thePenguinMachine/default.nix | 48 ------------------------ pkgs/top-level/all-packages.nix | 4 -- 2 files changed, 52 deletions(-) delete mode 100644 pkgs/games/thePenguinMachine/default.nix diff --git a/pkgs/games/thePenguinMachine/default.nix b/pkgs/games/thePenguinMachine/default.nix deleted file mode 100644 index 6829c084ce9e..000000000000 --- a/pkgs/games/thePenguinMachine/default.nix +++ /dev/null @@ -1,48 +0,0 @@ -{stdenv, fetchurl, python, pillow, pygame, SDL} @ args: with args; -stdenv.mkDerivation { - name = "thePenguinMachine"; - - src = fetchurl { - url = http://www.migniot.com/matrix/projects/thepenguinmachine/ThePenguinMachine.tar.gz; - sha256 = "09ljks8vj75g00h3azc83yllbfsrxwmv1c9g32gylcmsshik0dqv"; - }; - # Perhaps the following source works? See http://tpm.seul.org/ - # url = http://tpm.seul.org/TPM.tar.bz2; - # sha256 = "8fc2f2961a54005cd7f349dd859823addf05b01d0e3b3e83928b5b75460930fa"; - - broken = true; # Not found - - buildInputs = [python pillow pygame SDL]; - - configurePhase = '' - sed -e "/includes = /aincludes.append('${SDL}/include/SDL')" -i setup.py; - sed -e "/includes = /aincludes.append('$(echo ${pygame}/include/python*)')" -i setup.py; - cat setup.py; - export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s" - ''; - buildPhase = '' - sed -e "s/pygame.display.toggle_fullscreen.*/pass;/" -i tpm/Application.py - sed -e 's@"Surface"@"pygame.Surface"@' -i src/surfutils.c - python setup.py build; - python setup.py build_clib; - python setup.py build_ext; - python setup.py build_py; - python setup.py build_scripts; - ''; - installPhase = '' - python setup.py install --prefix=$out - mkdir -p "$out"/share/tpm/ - cp -r . "$out"/share/tpm/build-dir - mkdir -p "$out/bin" - echo "#! /bin/sh" >> "$out/bin/tpm" - echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pillow}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" - echo "cd \"$out/share/tpm/build-dir\"" >> "$out/bin/tpm" - echo "export PYTHONPATH=\"\$PYTHONPATH:$PYTHONPATH:$(echo ${pillow}/lib/python*/site-packages/PIL)\"" >> "$out/bin/tpm" - echo "${python}/bin/python \"$out\"/share/tpm/build-dir/ThePenguinMachine.py \"\$@\"" >> "$out/bin/tpm" - chmod a+x "$out/bin/tpm" - ''; - - meta = { - description = "An Incredible Machine clone"; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd2f0130e886..f82399764102 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14223,10 +14223,6 @@ let tome4 = callPackage ../games/tome4 { }; - tpm = callPackage ../games/thePenguinMachine { - inherit (pythonPackages) pillow; - }; - trackballs = callPackage ../games/trackballs { debug = false; guile = guile_1_8; From 9455476f47cf01095747c36b42777f9d9d1dc525 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 16:00:51 +0100 Subject: [PATCH 12/13] tribler: use pillow instead of pil Program opens. Didn't test any further. --- pkgs/applications/networking/p2p/tribler/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/p2p/tribler/default.nix b/pkgs/applications/networking/p2p/tribler/default.nix index a96d0f9cc673..b2a578ddc1de 100644 --- a/pkgs/applications/networking/p2p/tribler/default.nix +++ b/pkgs/applications/networking/p2p/tribler/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { pythonPackages.twisted pythonPackages.gmpy pythonPackages.netifaces - pythonPackages.pil + pythonPackages.pillow pythonPackages.pycrypto pythonPackages.pyasn1 pythonPackages.requests From 91adf1bb65a95e1ecb47e4fa4bbd7f8d969cdc48 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 8 Dec 2015 16:07:29 +0100 Subject: [PATCH 13/13] python: remove PIL Remove it once and for all. --- pkgs/top-level/all-packages.nix | 2 -- pkgs/top-level/python-packages.nix | 44 ------------------------------ 2 files changed, 46 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f82399764102..808a9f4b5271 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8981,8 +8981,6 @@ let numeric = callPackage ../development/python-modules/numeric { }; - pil = pythonPackages.pil; - psyco = callPackage ../development/python-modules/psyco { }; pycairo = pythonPackages.pycairo; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8621a8a8f115..ee4351537036 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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";