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

31 lines
779 B
Nix
Raw Normal View History

{lib, fetchurl, python, buildPythonPackage, makeWrapper}:
buildPythonPackage rec {
pname = "PyXML";
version = "0.8.4";
2018-05-28 12:59:57 +00:00
format = "other";
src = fetchurl {
2018-05-28 12:59:57 +00:00
url = "mirror://sourceforge/pyxml/${pname}-${pname}.tar.gz";
sha256 = "04wc8i7cdkibhrldy6j65qp5l75zjxf5lx6qxdxfdf2gb3wndawz";
};
2016-08-31 09:01:16 +00:00
buildInputs = [ makeWrapper ];
buildPhase = "${python.interpreter} ./setup.py build";
installPhase = ''
2016-08-31 09:01:16 +00:00
${python.interpreter} ./setup.py install --prefix="$out" || exit 1
for i in "$out/bin/"*
do
wrapProgram "$i" --prefix PYTHONPATH : \
2016-08-31 09:01:16 +00:00
"$out/${python.sitePackages}" || \
exit 2
done
'';
meta = {
description = "A collection of libraries to process XML with Python";
homepage = http://pyxml.sourceforge.net/;
};
}