3
0
Fork 0
forked from mirrors/nixpkgs

Add PyXML.

svn path=/nixpkgs/trunk/; revision=10832
This commit is contained in:
Ludovic Courtès 2008-02-22 13:53:45 +00:00
parent 1ca69f74e5
commit c18141227f
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{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 = ''The PyXML package is a collection of libraries to process
XML with Python.'';
homepage = http://pyxml.sourceforge.net/;
};
}

View file

@ -3506,6 +3506,10 @@ rec {
inherit (gtkLibs) glib gtk;
};
pyxml = import ../development/python-modules/pyxml {
inherit fetchurl stdenv python makeWrapper;
};
wxPython = wxPython26;
wxPython26 = import ../development/python-modules/wxPython/2.6.nix {