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