From cc1318279592fa056959f629629d26faff7e082d Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Wed, 11 Jun 2014 10:00:44 +0400 Subject: [PATCH] Create a PIL symlink when installing PIL so the recommended way of importing PIL.something works --- pkgs/development/python-modules/pil/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/pil/default.nix b/pkgs/development/python-modules/pil/default.nix index 0b462cb4e521..35a1e913bf7b 100644 --- a/pkgs/development/python-modules/pil/default.nix +++ b/pkgs/development/python-modules/pil/default.nix @@ -24,6 +24,11 @@ buildPythonPackage { checkPhase = "python selftest.py"; buildPhase = "python setup.py build_ext -i"; + postInstall = '' + cd "$out"/lib/python*/site-packages + ln -s $PWD PIL + ''; + meta = { homepage = http://www.pythonware.com/products/pil/; description = "The Python Imaging Library (PIL)";