nixpkgs/pkgs/development/python-modules/pyxml/default.nix
Frederik Rietdijk 3760c8c7fd Python: replace mkPythonDerivation with buildPythonPackage and format="other";
This way all Python packages use the same function,
`buildPythonPackage`.
2017-03-21 13:01:49 +01:00

29 lines
752 B
Nix

{lib, fetchurl, python, buildPythonPackage, makeWrapper}:
buildPythonPackage rec {
name = "PyXML-0.8.4";
format = "other";
src = fetchurl {
url = "mirror://sourceforge/pyxml/${name}.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/;
};
}