nixpkgs/pkgs/development/python-modules/pyxml/default.nix

28 lines
732 B
Nix
Raw Normal View History

2016-08-31 11:01:16 +02:00
{lib, fetchurl, python, mkPythonDerivation, makeWrapper}:
2016-08-31 11:01:16 +02:00
mkPythonDerivation rec {
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";
installPhase = ''
2016-08-31 11:01:16 +02:00
${python.interpreter} ./setup.py install --prefix="$out" || exit 1
for i in "$out/bin/"*
do
wrapProgram "$i" --prefix PYTHONPATH : \
2016-08-31 11:01:16 +02:00
"$out/${python.sitePackages}" || \
exit 2
done
'';
meta = {
description = "A collection of libraries to process XML with Python";
homepage = http://pyxml.sourceforge.net/;
};
}