1{stdenv, fetchurl, python, makeWrapper}:
2
3stdenv.mkDerivation rec {
4 name = "PyXML-0.8.4";
5 src = fetchurl {
6 url = "mirror://sourceforge/pyxml/${name}.tar.gz";
7 sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
8 };
9
10 buildInputs = [python makeWrapper];
11 buildPhase = "python ./setup.py build";
12 installPhase = ''
13 python ./setup.py install --prefix="$out" || exit 1
14
15 for i in "$out/bin/"*
16 do
17 # FIXME: We're assuming Python 2.4.
18 wrapProgram "$i" --prefix PYTHONPATH : \
19 "$out/lib/python2.4/site-packages" || \
20 exit 2
21 done
22 '';
23
24 meta = {
25 description = "A collection of libraries to process XML with Python";
26 homepage = http://pyxml.sourceforge.net/;
27 };
28}