Unverified Commit 7d6fd8b0 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #97731 from marsam/tab-python3

tab: use python3
parents eace2d8a c193d3b4
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
{ stdenv, fetchFromBitbucket, python2 }:
{ stdenv, fetchFromBitbucket, python3 }:

stdenv.mkDerivation rec {
  version = "7.2";
@@ -11,9 +11,13 @@ stdenv.mkDerivation rec {
    sha256 = "1bm15lw0vp901dj2vsqx6yixmn7ls3brrzh1w6zgd1ksjzlm5aax";
  };

  nativeBuildInputs = [ python2 ];
  checkInputs = [ python3 ];

  doCheck = true;
  doCheck = !stdenv.isDarwin;

  preCheck = ''
    substituteInPlace Makefile --replace "python2 go2.py" "python go.py"
  '';

  checkTarget = "test";

@@ -31,6 +35,6 @@ stdenv.mkDerivation rec {
    homepage    = "https://tkatchev.bitbucket.io/tab/";
    license     = licenses.boost;
    maintainers = with maintainers; [ mstarzyk ];
    platforms   = with platforms; linux;
    platforms   = with platforms; unix;
  };
}