2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome-doc-utils
|
2018-07-21 01:44:44 +01:00
|
|
|
, intltool, dbus-glib, gnome_python
|
2018-02-25 02:23:58 +00:00
|
|
|
, hicolor-icon-theme
|
2018-11-11 21:20:41 +00:00
|
|
|
, wafHook
|
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";
|
|
|
|
};
|
|
|
|
|
2019-02-15 09:08:27 +00:00
|
|
|
nativeBuildInputs = [ wafHook intltool ];
|
2015-10-13 13:48:26 +01:00
|
|
|
buildInputs = [
|
2019-02-15 09:08:27 +00:00
|
|
|
docbook2x libxslt gnome-doc-utils dbus-glib hicolor-icon-theme
|
2015-10-13 13:48:26 +01:00
|
|
|
];
|
2015-01-29 20:05:57 +00:00
|
|
|
|
2016-10-13 23:03:12 +01:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python ];
|
2015-01-29 20:05:57 +00:00
|
|
|
|
2017-09-30 17:59:00 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/lib/hamster-time-tracker "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2015-01-29 20:05:57 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|