pythonPackages.gtimelog: 0.8.1 -> 0.9.1, use gi stack

This commit is contained in:
Domen Kožar 2014-08-26 14:54:05 +02:00
parent ce3d23a24d
commit 4fbeca8823

View File

@ -2190,34 +2190,19 @@ rec {
gtimelog = buildPythonPackage rec {
name = "gtimelog-${version}";
version = "0.9.1";
disabled = isPy26;
version = "0.8.1";
src = fetchurl {
url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz";
sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
sha256 = "0nwpfv284b26q97mfpagqkqb4n2ilw46cx777qsyi3plnywk1xa0";
};
preBuild = ''
export LOCALE_ARCHIVE=${pkgs.glibcLocales}/lib/locale/locale-archive
export LC_ALL="en_US.UTF-8"
'';
# TODO: AppIndicator
propagatedBuildInputs = [ pkgs.gobjectIntrospection pygobject3 pkgs.makeWrapper pkgs.gtk3 ];
propagatedBuildInputs = [ pygtk ];
checkPhase = ''
substituteInPlace runtests --replace "/usr/bin/env python" "${python}/bin/${python.executable}"
patchShebangs ./runtests
./runtests
'';
preFixup = ''
wrapProgram $out/bin/gtimelog \
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
--prefix LD_LIBRARY_PATH ":" "${pkgs.gtk3}/lib" \
'';
meta = with stdenv.lib; {
description = "A small Gtk+ app for keeping track of your time. It's main goal is to be as unintrusive as possible";