2016-08-31 11:01:16 +02:00
|
|
|
{lib, fetchurl, python, mkPythonDerivation, makeWrapper}:
|
2008-02-22 14:53:45 +01:00
|
|
|
|
2016-08-31 11:01:16 +02:00
|
|
|
mkPythonDerivation rec {
|
2008-02-22 14:53:45 +01:00
|
|
|
name = "PyXML-0.8.4";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/pyxml/${name}.tar.gz";
|
|
|
|
sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
|
|
|
|
};
|
|
|
|
|
2016-08-31 11:01:16 +02:00
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
buildPhase = "${python.interpreter} ./setup.py build";
|
2008-02-22 14:53:45 +01:00
|
|
|
installPhase = ''
|
2016-08-31 11:01:16 +02:00
|
|
|
${python.interpreter} ./setup.py install --prefix="$out" || exit 1
|
2008-02-22 14:53:45 +01:00
|
|
|
|
|
|
|
for i in "$out/bin/"*
|
|
|
|
do
|
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : \
|
2016-08-31 11:01:16 +02:00
|
|
|
"$out/${python.sitePackages}" || \
|
2008-02-22 14:53:45 +01:00
|
|
|
exit 2
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A collection of libraries to process XML with Python";
|
2008-02-22 14:53:45 +01:00
|
|
|
homepage = http://pyxml.sourceforge.net/;
|
|
|
|
};
|
|
|
|
}
|