mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
fcad0b0a5a
Some of these should be longDescriptions, but most others just shouldn't contain newlines. E.g. write description = "Bla"; and not description = '' Bla ''; This pollutes "nix-env -qa --description" output. svn path=/nixpkgs/trunk/; revision=14310
28 lines
738 B
Nix
28 lines
738 B
Nix
{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/;
|
|
};
|
|
}
|