diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2020-09-11 05:38:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 05:38:04 -0500 |
commit | 7d6fd8b0081774bccc2eda1352f221783844b7ee (patch) | |
tree | aa6d2febc3b0422279a67c8dc30bec28ad83ff6b /pkgs/tools | |
parent | eace2d8a1a74091045f0d3757c55e04a77000cb7 (diff) | |
parent | c193d3b494b669c7c0c0833f242c42650ecbbcf0 (diff) |
Merge pull request #97731 from marsam/tab-python3
tab: use python3
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/text/tab/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/tools/text/tab/default.nix b/pkgs/tools/text/tab/default.nix index f7796c8a32916..8a80c7ad10e92 100644 --- a/pkgs/tools/text/tab/default.nix +++ b/pkgs/tools/text/tab/default.nix @@ -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; }; } |