2018-02-25 02:23:58 +00:00
|
|
|
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome-doc-utils
|
|
|
|
, intltool, dbus-glib, gnome_python, dbus
|
|
|
|
, 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 20:51:21 +00: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 12:48:26 +00:00
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
docbook2x libxslt gnome-doc-utils intltool dbus-glib hicolor-icon-theme
|
2015-10-13 12:48:26 +00:00
|
|
|
];
|
2015-01-29 20:05:57 +00:00
|
|
|
|
2016-10-13 22:03:12 +00:00
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python ];
|
2015-01-29 20:05:57 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
python waf configure --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python waf build
|
|
|
|
'';
|
|
|
|
|
2017-09-30 16:59:00 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/lib/hamster-time-tracker "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2015-01-29 20:05:57 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|