1{lib, fetchurl, python, mkPythonDerivation, makeWrapper}: 2 3mkPythonDerivation rec { 4 name = "PyXML-0.8.4"; 5 src = fetchurl { 6 url = "mirror://sourceforge/pyxml/${name}.tar.gz"; 7 sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz"; 8 }; 9 10 buildInputs = [ makeWrapper ]; 11 buildPhase = "${python.interpreter} ./setup.py build"; 12 installPhase = '' 13 ${python.interpreter} ./setup.py install --prefix="$out" || exit 1 14 15 for i in "$out/bin/"* 16 do 17 wrapProgram "$i" --prefix PYTHONPATH : \ 18 "$out/${python.sitePackages}" || \ 19 exit 2 20 done 21 ''; 22 23 meta = { 24 description = "A collection of libraries to process XML with Python"; 25 homepage = http://pyxml.sourceforge.net/; 26 }; 27}