forked from mirrors/nixpkgs
pil uses buildPythonPackage and is now actually also built for 2.6
This commit is contained in:
parent
d76e4420af
commit
cd905b16af
|
@ -1,9 +1,9 @@
|
|||
{ fetchurl, stdenv, python, libjpeg, zlib, freetype }:
|
||||
{ fetchurl, stdenv, python, buildPythonPackage, libjpeg, zlib, freetype }:
|
||||
|
||||
let version = "1.1.7"; in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "python-imaging-${version}";
|
||||
buildPythonPackage {
|
||||
name = "imaging-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://effbot.org/downloads/Imaging-${version}.tar.gz";
|
||||
|
@ -23,7 +23,7 @@ stdenv.mkDerivation {
|
|||
|
||||
buildPhase = "python setup.py build_ext -i";
|
||||
checkPhase = "python selftest.py";
|
||||
installPhase = "python setup.py install --prefix=$out";
|
||||
#installPhase = "python setup.py install --prefix=$out";
|
||||
|
||||
meta = {
|
||||
homepage = http://www.pythonware.com/products/pil/;
|
||||
|
|
|
@ -40,7 +40,8 @@ let pythonPackages = python.modules // rec {
|
|||
};
|
||||
|
||||
pil = import ../development/python-modules/pil {
|
||||
inherit (pkgs) fetchurl stdenv python libjpeg zlib freetype;
|
||||
inherit (pkgs) fetchurl stdenv libjpeg zlib freetype;
|
||||
inherit python buildPythonPackage;
|
||||
};
|
||||
|
||||
wrapPython = pkgs.makeSetupHook
|
||||
|
@ -620,7 +621,7 @@ let pythonPackages = python.modules // rec {
|
|||
sha256 = "1d8vg5a9q2ldnbxqap1893lqb66jwcsli2brbjx7mcnqrzcz449x";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pkgs.pil django_1_3 ];
|
||||
propagatedBuildInputs = [ pil django_1_3 ];
|
||||
|
||||
meta = {
|
||||
description = "A collection of useful extensions for Django";
|
||||
|
|
Loading…
Reference in a new issue