nixpkgs-suyu/pkgs/applications/version-management/tortoisehg/default.nix
Ryan Mulligan a283292df0 tortoisehg: 4.5 -> 4.5.2
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/.thg-wrapped -h` got 0 exit code
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/.thg-wrapped --help` got 0 exit code
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/.thg-wrapped help` got 0 exit code
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/.thg-wrapped version` and found version 4.5.2
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/thg -h` got 0 exit code
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/thg --help` got 0 exit code
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/thg help` got 0 exit code
- ran `/nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2/bin/thg version` and found version 4.5.2
- found 4.5.2 with grep in /nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2
- found 4.5.2 in filename of file in /nix/store/zffgxhajwm899w5ybwhr35j16xbx6lh7-tortoisehg-4.5.2
2018-03-30 22:53:42 +02:00

38 lines
1.2 KiB
Nix

{lib, fetchurl, mercurial, python2Packages}:
python2Packages.buildPythonApplication rec {
name = "tortoisehg-${version}";
version = "4.5.2";
src = fetchurl {
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
sha256 = "0q12zjpgafdch4ns31k4afy25g837xm7v2qwj62806l2dz4rm4h9";
};
pythonPath = with python2Packages; [ pyqt4 mercurial qscintilla iniparse ];
propagatedBuildInputs = with python2Packages; [ qscintilla iniparse ];
doCheck = false; # tests fail with "thg: cannot connect to X server"
dontStrip = true;
buildPhase = "";
installPhase = ''
${python2Packages.python.executable} setup.py install --prefix=$out
mkdir -p $out/share/doc/tortoisehg
cp COPYING.txt $out/share/doc/tortoisehg/Copying.txt.gz
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
'';
checkPhase = ''
echo "test: thg version"
$out/bin/thg version
'';
meta = {
description = "Qt based graphical tool for working with Mercurial";
homepage = http://tortoisehg.bitbucket.org/;
license = lib.licenses.gpl2;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ danbst ];
};
}