2018-02-25 03:23:58 +01:00
|
|
|
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome-doc-utils
|
2018-07-21 02:44:44 +02:00
|
|
|
, intltool, dbus-glib, gnome_python
|
2018-02-25 03:23:58 +01:00
|
|
|
, hicolor-icon-theme
|
2018-11-11 22:20:41 +01:00
|
|
|
, wafHook
|
2015-01-29 21:05:57 +01: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 22:51:21 +02:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-01-29 21:05:57 +01:00
|
|
|
name = "hamster-time-tracker-1.04";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
name = "${name}-src";
|
|
|
|
url = "https://github.com/projecthamster/hamster/archive/${name}.tar.gz";
|
|
|
|
sha256 = "1a85rcg561792kdyv744cgzw7mmpmgv6d6li1sijfdpqa1ninf8g";
|
|
|
|
};
|
|
|
|
|
2019-02-15 10:08:27 +01:00
|
|
|
nativeBuildInputs = [ wafHook intltool ];
|
2015-10-13 14:48:26 +02:00
|
|
|
buildInputs = [
|
2019-02-15 10:08:27 +01:00
|
|
|
docbook2x libxslt gnome-doc-utils dbus-glib hicolor-icon-theme
|
2015-10-13 14:48:26 +02:00
|
|
|
];
|
2015-01-29 21:05:57 +01:00
|
|
|
|
2016-10-14 00:03:12 +02:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python ];
|
2015-01-29 21:05:57 +01:00
|
|
|
|
2017-09-30 18:59:00 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/lib/hamster-time-tracker "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2015-01-29 21:05:57 +01:00
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|