diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-02-25 11:09:37 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2008-02-25 11:09:37 +0000 |
commit | 5ea761b23f1842f25f3030ceb67fbf11515ef565 (patch) | |
tree | 7d0e69a99b99706ca12903e09fc63f16bbbe0fd4 /pkgs/development/python-modules/pyxml/default.nix | |
parent | 6eaa389efab41b444d610a2a7ae6c2d816270cdc (diff) | |
parent | e7f99973e1ef2c97e75325991ac763342e09bf18 (diff) |
* Merged the last of the trunk, preparing for switch... backups/stdenv-updates-merge@10849
svn path=/nixpkgs/branches/stdenv-updates-merge/; revision=10847
Diffstat (limited to 'pkgs/development/python-modules/pyxml/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pyxml/default.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyxml/default.nix b/pkgs/development/python-modules/pyxml/default.nix new file mode 100644 index 0000000000000..7c9aafded73d6 --- /dev/null +++ b/pkgs/development/python-modules/pyxml/default.nix @@ -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/; + }; +} |