From c18141227fb831bcc8f24a57a985b9d71439e088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 22 Feb 2008 13:53:45 +0000 Subject: [PATCH] Add PyXML. svn path=/nixpkgs/trunk/; revision=10832 --- .../python-modules/pyxml/default.nix | 29 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/pyxml/default.nix diff --git a/pkgs/development/python-modules/pyxml/default.nix b/pkgs/development/python-modules/pyxml/default.nix new file mode 100644 index 000000000000..7c9aafded73d --- /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/; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9a25f929da40..1be9f913fd3b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 {