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