8 python3Packages.buildPythonApplication rec {
13 url = "https://www.mercurial-scm.org/release/tortoisehg/targz/tortoisehg-${version}.tar.gz";
14 sha256 = "sha256-9pg1N5uj1ZaZCAm4N8toRwfVHme7nAsNMZkXSRgFves=";
20 propagatedBuildInputs = with python3Packages; [
22 # The one from python3Packages
27 # Makes wrapQtAppsHook add these qt libraries to the wrapper search paths
31 # In order to spare double wrapping, we use:
33 makeWrapperArgs+=("''${qtWrapperArgs[@]}")
37 ln -s $out/bin/thg $out/bin/tortoisehg
40 # In python3Packages.buildPythonApplication doCheck is always true, and we
41 # override it to not run the default unittests
45 $out/bin/thg version | grep -q "${version}"
46 # Detect breakage of thg in case of out-of-sync mercurial update. In that
47 # case any thg subcommand just opens up an gui dialog with a description of
50 $out/bin/thg -h > help.txt &
52 grep -q "list of commands" help.txt
58 # If at some point we'll override this argument, it might be useful to have
64 description = "Qt based graphical tool for working with Mercurial";
65 homepage = "https://tortoisehg.bitbucket.io/";
66 license = lib.licenses.gpl2Only;
67 platforms = lib.platforms.linux;
68 maintainers = with lib.maintainers; [ danbst gbtb ];