git.iko.soy/typeable/nixpkgs
on master help sign in
Pymacs: use buildPythonPackage instead of mkDerivation
cee89efCillian de Róiste
pkgs/top-level/python-packages.nix+11−5
@@ -7460,9 +7460,10 @@ let
7460 });
7460 });
7461
7461
7462
7462
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;
7466
7467
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";
7471 };
7472 };
7472
7473
7473− buildInputs = with self; [ python ];
7474+ configurePhase = "make";
7474
7475
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 \
7480+ --prefix="$out"
7477 '';
7481 '';
7478
7482
7483+ doCheck = false;
7484+
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;