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