3
0
Fork 0
forked from mirrors/nixpkgs

Pymacs: use buildPythonPackage instead of mkDerivation

This commit is contained in:
Cillian de Róiste 2014-10-14 18:51:25 +02:00
parent 12cb1dcb18
commit cee89ef215

View file

@ -7460,9 +7460,10 @@ let
});
pymacs = pkgs.stdenv.mkDerivation rec {
pymacs = buildPythonPackage rec {
version = "0.25";
name = "Pymacs-${version}";
name = "pymacs-${version}";
disabled = isPy3k || isPyPy;
src = pkgs.fetchurl {
url = "https://github.com/pinard/Pymacs/tarball/v${version}";
@ -7470,12 +7471,17 @@ let
sha256 = "1hmy76c5igm95rqbld7gvk0az24smvc8hplfwx2f5rhn6frj3p2i";
};
buildInputs = with self; [ python ];
configurePhase = "make";
patchPhase = ''
sed -e "s@ install@ install --prefix=$out@g" -i Makefile
# Doesn't work with --old-and-unmanagable
installPhase = ''
${python}/bin/${python.executable} setup.py install \
--install-lib=$out/lib/${python.libPrefix}/site-packages \
--prefix="$out"
'';
doCheck = false;
meta = with stdenv.lib; {
description = "Emacs Lisp to Python interface";
homepage = http://pymacs.progiciels-bpi.ca;