2016-08-16 21:51:21 +01:00
|
|
|
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome_doc_utils
|
|
|
|
, intltool, dbus_glib, gnome_python, dbus
|
2015-10-13 13:48:26 +01:00
|
|
|
, hicolor_icon_theme
|
2015-01-29 20:05:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
# TODO: Add optional dependency 'wnck', for "workspace tracking" support. Fixes
|
|
|
|
# this message:
|
|
|
|
#
|
|
|
|
# WARNING:root:Could not import wnck - workspace tracking will be disabled
|
|
|
|
|
2016-08-16 21:51:21 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-01-29 20:05:57 +00:00
|
|
|
name = "hamster-time-tracker-1.04";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
name = "${name}-src";
|
|
|
|
url = "https://github.com/projecthamster/hamster/archive/${name}.tar.gz";
|
|
|
|
sha256 = "1a85rcg561792kdyv744cgzw7mmpmgv6d6li1sijfdpqa1ninf8g";
|
|
|
|
};
|
|
|
|
|
2015-10-13 13:48:26 +01:00
|
|
|
buildInputs = [
|
|
|
|
docbook2x libxslt gnome_doc_utils intltool dbus_glib hicolor_icon_theme
|
|
|
|
];
|
2015-01-29 20:05:57 +00:00
|
|
|
|
2016-09-11 22:24:51 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python sqlite3 ];
|
2015-01-29 20:05:57 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
python waf configure --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python waf build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python waf install
|
|
|
|
'';
|
|
|
|
|
|
|
|
# error: invalid command 'test'
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Time tracking application";
|
|
|
|
homepage = https://projecthamster.wordpress.com/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.bjornfor ];
|
|
|
|
};
|
|
|
|
}
|