2018-07-21 02:44:44 +02:00
|
|
|
{fetchurl, python, buildPythonPackage, makeWrapper}:
|
2008-02-22 14:53:45 +01:00
|
|
|
|
2017-03-21 13:01:17 +01:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "PyXML";
|
|
|
|
version = "0.8.4";
|
2018-05-28 14:59:57 +02:00
|
|
|
|
2017-03-21 13:01:17 +01:00
|
|
|
format = "other";
|
2008-02-22 14:53:45 +01:00
|
|
|
src = fetchurl {
|
2018-05-28 14:59:57 +02:00
|
|
|
url = "mirror://sourceforge/pyxml/${pname}-${pname}.tar.gz";
|
2008-02-22 14:53:45 +01:00
|
|
|
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/;
|
|
|
|
};
|
|
|
|
}
|