mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
ab061940dd
Hamster did not start because the PYTHONPATH was not set for its services. Closes: #27498
53 lines
1.3 KiB
Nix
53 lines
1.3 KiB
Nix
{ stdenv, fetchzip, pythonPackages, docbook2x, libxslt, gnome_doc_utils
|
|
, intltool, dbus_glib, gnome_python, dbus
|
|
, hicolor_icon_theme
|
|
}:
|
|
|
|
# TODO: Add optional dependency 'wnck', for "workspace tracking" support. Fixes
|
|
# this message:
|
|
#
|
|
# WARNING:root:Could not import wnck - workspace tracking will be disabled
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
name = "hamster-time-tracker-1.04";
|
|
|
|
src = fetchzip {
|
|
name = "${name}-src";
|
|
url = "https://github.com/projecthamster/hamster/archive/${name}.tar.gz";
|
|
sha256 = "1a85rcg561792kdyv744cgzw7mmpmgv6d6li1sijfdpqa1ninf8g";
|
|
};
|
|
|
|
buildInputs = [
|
|
docbook2x libxslt gnome_doc_utils intltool dbus_glib hicolor_icon_theme
|
|
];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [ pygobject2 pygtk pyxdg gnome_python dbus-python ];
|
|
|
|
configurePhase = ''
|
|
python waf configure --prefix="$out"
|
|
'';
|
|
|
|
buildPhase = ''
|
|
python waf build
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapPythonProgramsIn $out/lib/hamster-time-tracker "$out $pythonPath"
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|