2009-05-24 14:20:08 +02:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2009-06-26 13:03:14 +02:00
|
|
|
version = a.lib.attrByPath ["version"] "0.6c9" a;
|
2009-05-24 14:20:08 +02:00
|
|
|
buildInputs = with a; [
|
|
|
|
python makeWrapper
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
name = "setuptools-" + version;
|
2009-05-24 00:54:11 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://pypi.python.org/packages/source/s/setuptools/${name}.tar.gz";
|
|
|
|
sha256 = "1n5k6hf9nn69fnprgsnr9hdxzj2j6ir76qcy9d4b2v0v62bh86g6";
|
|
|
|
};
|
|
|
|
|
2009-05-24 14:20:08 +02:00
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
2009-05-24 00:54:11 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2009-05-24 14:20:08 +02:00
|
|
|
doMakeCheck = a.fullDepEntry (''
|
|
|
|
python setup.py test
|
|
|
|
'') ["minInit" "doUnpack" "addInputs" "doBuild"];
|
|
|
|
|
|
|
|
doBuild = a.fullDepEntry(''
|
|
|
|
python setup.py build --build-base $out
|
|
|
|
'') ["addInputs" "doUnpack"];
|
2009-05-24 00:54:11 +02:00
|
|
|
|
2009-05-24 14:20:08 +02:00
|
|
|
doInstall = a.fullDepEntry(''
|
2009-05-24 00:54:11 +02:00
|
|
|
ensureDir "$out/lib/python2.5/site-packages"
|
|
|
|
|
|
|
|
PYTHONPATH="$out/lib/python2.5/site-packages:$PYTHONPATH" \
|
|
|
|
python setup.py install --prefix="$out"
|
|
|
|
|
|
|
|
for i in "$out/bin/"*
|
|
|
|
do
|
|
|
|
wrapProgram "$i" \
|
|
|
|
--prefix PYTHONPATH ":" \
|
|
|
|
"$out/lib/python2.5/site-packages"
|
|
|
|
done
|
2009-05-24 14:20:08 +02:00
|
|
|
'') ["doBuild"];
|
|
|
|
|
|
|
|
phaseNames = ["doBuild" "doInstall"];
|
2009-05-24 00:54:11 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Utilities to facilitate the installation of Python packages";
|
|
|
|
homepage = http://pypi.python.org/pypi/setuptools;
|
|
|
|
licenses = [ "PSF" "ZPL" ];
|
2009-05-24 14:20:08 +02:00
|
|
|
};
|
2009-05-24 00:54:11 +02:00
|
|
|
}
|