2016-02-28 00:08:56 +00:00
|
|
|
{lib, fetchurl, mercurial, pythonPackages}:
|
2015-07-31 19:29:29 +00:00
|
|
|
|
2016-02-28 00:08:56 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-07-31 19:29:29 +00:00
|
|
|
name = "tortoisehg-${version}";
|
2016-02-28 00:08:56 +00:00
|
|
|
version = "3.7.1";
|
2015-07-31 19:29:29 +00:00
|
|
|
namePrefix = "";
|
|
|
|
|
2016-02-28 00:08:56 +00:00
|
|
|
src = fetchurl {
|
2015-07-31 19:29:29 +00:00
|
|
|
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
2016-02-28 00:08:56 +00:00
|
|
|
sha256 = "1ycf8knwk1rs99s5caq611sk4c4nzwyzq8g35hw5kwj15b6dl4k6";
|
2015-07-31 19:29:29 +00:00
|
|
|
};
|
|
|
|
|
2016-02-28 00:08:56 +00:00
|
|
|
pythonPath = with pythonPackages; [ pyqt4 mercurial qscintilla iniparse ];
|
2015-07-31 19:29:29 +00:00
|
|
|
|
2016-02-28 00:08:56 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ qscintilla iniparse ];
|
2015-11-17 21:09:38 +00:00
|
|
|
|
2015-07-31 19:29:29 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postUnpack = ''
|
|
|
|
substituteInPlace $sourceRoot/setup.py \
|
2016-02-28 00:08:56 +00:00
|
|
|
--replace "sharedir = os.path.join(installcmd.install_data[rootlen:], 'share')" "sharedir = '$out/share/'"
|
2015-07-31 19:29:29 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
ln -s $out/bin/thg $out/bin/tortoisehg #convenient alias
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Qt based graphical tool for working with Mercurial";
|
|
|
|
homepage = http://tortoisehg.bitbucket.org/;
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = [ "abcz2.uprola@gmail.com" ];
|
|
|
|
};
|
2015-11-17 21:09:38 +00:00
|
|
|
}
|