- adding experimental python31 build

- cleanup python libraries:
 * moving all python libraries into a attr set into a directory
   so that expressions can be used for both: python 2.5 and 2.6 easily
 * disabling packages which don't build

svn path=/nixpkgs/trunk/; revision=21142
This commit is contained in:
Marc Weber
2010-04-17 18:28:25 +00:00
parent 9e59164e57
commit 8c0b7e4ad2
41 changed files with 1154 additions and 178 deletions

View File

@@ -1,28 +0,0 @@
{stdenv, fetchurl, python, makeWrapper}:
stdenv.mkDerivation rec {
name = "PyXML-0.8.4";
src = fetchurl {
url = "mirror://sourceforge/pyxml/${name}.tar.gz";
sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
};
buildInputs = [python makeWrapper];
buildPhase = "python ./setup.py build";
installPhase = ''
python ./setup.py install --prefix="$out" || exit 1
for i in "$out/bin/"*
do
# FIXME: We're assuming Python 2.4.
wrapProgram "$i" --prefix PYTHONPATH : \
"$out/lib/python2.4/site-packages" || \
exit 2
done
'';
meta = {
description = "A collection of libraries to process XML with Python";
homepage = http://pyxml.sourceforge.net/;
};
}