From e2a374799fc9e93034fbb75b12f597b874cb00dd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Apr 2010 10:51:15 +0000 Subject: * Reverted most of the recent Python refactorings, as discussed. It's a worthy goal to move the Python packages that are currently in all-packages.nix into a single attribute set, but this doesn't require moving python-packages.nix or the other changes made to that file. The Python packages in all-packages.nix should simply be moved to python-packages.nix, and ideally changed to use buildPythonPackage. svn path=/nixpkgs/trunk/; revision=21196 --- pkgs/development/python-modules/pyxml/default.nix | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/pyxml/default.nix (limited to 'pkgs/development/python-modules/pyxml') diff --git a/pkgs/development/python-modules/pyxml/default.nix b/pkgs/development/python-modules/pyxml/default.nix new file mode 100644 index 000000000000..3c36565b5266 --- /dev/null +++ b/pkgs/development/python-modules/pyxml/default.nix @@ -0,0 +1,28 @@ +{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/; + }; +} -- cgit 1.4.1