git.iko.soy/typeable/nixpkgs
on master help sign in
Pymacs: use buildPythonPackage instead of mkDerivation
commitcee89ef215eff7a2f84455246c2f2be08c9136e7 authorCillian de Róiste <cillian.deroiste@gmail.com> dateTue 14 Oct 2014, 18:51 (12 years ago) parent12cb1dc
1 file changed+11−5
pkgs/top-level/python-packages.nix+11−5
pkgs/top-level/python-packages.nix+11−5
@@ -7460,9 +7460,10 @@ let
74607460 });
74617461
74627462
7463− pymacs = pkgs.stdenv.mkDerivation rec {
7463+ pymacs = buildPythonPackage rec {
74647464 version = "0.25";
7465− name = "Pymacs-${version}";
7465+ name = "pymacs-${version}";
7466+ disabled = isPy3k || isPyPy;
74667467
74677468 src = pkgs.fetchurl {
74687469 url = "https://github.com/pinard/Pymacs/tarball/v${version}";
@@ -7470,12 +7471,17 @@ let
74707471 sha256 = "1hmy76c5igm95rqbld7gvk0az24smvc8hplfwx2f5rhn6frj3p2i";
74717472 };
74727473
7473− buildInputs = with self; [ python ];
7474+ configurePhase = "make";
74747475
7475− patchPhase = ''
7476− sed -e "s@ install@ install --prefix=$out@g" -i Makefile
7476+ # Doesn't work with --old-and-unmanagable
7477+ installPhase = ''
7478+ ${python}/bin/${python.executable} setup.py install \
7479+ --install-lib=$out/lib/${python.libPrefix}/site-packages \
7480+ --prefix="$out"
74777481 '';
74787482
7483+ doCheck = false;
7484+
74797485 meta = with stdenv.lib; {
74807486 description = "Emacs Lisp to Python interface";
74817487 homepage = http://pymacs.progiciels-bpi.ca;