21 lines
672 B
Nix
21 lines
672 B
Nix
{stdenv, fetchzip, python26Packages, zlib, libjpeg}: python26Packages.buildPythonPackage rec {
|
|
pname = "PIL";
|
|
version = "1.1.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchzip {
|
|
url = "https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/python-imaging/" + version + "-4ubuntu0.12.04.3/python-imaging_" + version + ".orig.tar.gz";
|
|
hash = "sha256-zH7hHIqP5UwBVFTdg5IvvckcCFI285Do/YSeqhzsTY0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [python26Packages.setuptools];
|
|
#nativeBuildInputs = [ libxml2 libxslt ];
|
|
buildInputs = [ zlib libjpeg ];
|
|
|
|
env = {
|
|
NIX_CFLAGS_COMPILE="-Wno-incompatible-pointer-types";
|
|
};
|
|
|
|
#pythonImportsCheck = [ "Image" ];
|
|
}
|