2018-07-21 01:44:44 +01:00
|
|
|
{fetchurl, python, buildPythonPackage, makeWrapper}:
|
2008-02-22 13:53:45 +00:00
|
|
|
|
2017-03-21 12:01:17 +00:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "PyXML";
|
|
|
|
version = "0.8.4";
|
2018-05-28 13:59:57 +01:00
|
|
|
|
2017-03-21 12:01:17 +00:00
|
|
|
format = "other";
|
2008-02-22 13:53:45 +00:00
|
|
|
src = fetchurl {
|
2018-05-28 13:59:57 +01:00
|
|
|
url = "mirror://sourceforge/pyxml/${pname}-${pname}.tar.gz";
|
2008-02-22 13:53:45 +00:00
|
|
|
sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
|
|
|
|
};
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2016-08-31 10:01:16 +01:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://pyxml.sourceforge.net/";
|
2008-02-22 13:53:45 +00:00
|
|
|
};
|
|
|
|
}
|