8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
30 lines
776 B
Nix
30 lines
776 B
Nix
{fetchurl, python, buildPythonPackage, makeWrapper}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyXML";
|
|
version = "0.8.4";
|
|
|
|
format = "other";
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pyxml/${pname}-${pname}.tar.gz";
|
|
sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
buildPhase = "${python.interpreter} ./setup.py build";
|
|
installPhase = ''
|
|
${python.interpreter} ./setup.py install --prefix="$out" || exit 1
|
|
|
|
for i in "$out/bin/"*
|
|
do
|
|
wrapProgram "$i" --prefix PYTHONPATH : \
|
|
"$out/${python.sitePackages}" || \
|
|
exit 2
|
|
done
|
|
'';
|
|
|
|
meta = {
|
|
description = "A collection of libraries to process XML with Python";
|
|
homepage = "http://pyxml.sourceforge.net/";
|
|
};
|
|
}
|