Merge pull request #97731 from marsam/tab-python3

tab: use python3
This commit is contained in:
Mario Rodas 2020-09-11 05:38:04 -05:00 committed by GitHub
commit 7d6fd8b008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ 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;
};
}