2023-03-15 16:39:30 +00:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, intltool, glib, itstool, gtk3
|
2020-06-18 07:06:33 +00:00
|
|
|
, wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "hamster";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "3.0.3";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projecthamster";
|
|
|
|
repo = pname;
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-cUmUvJP9Y3de5OaNgIxvigDsX2ww7NNRY5son/gg+WI=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3Packages.setuptools
|
|
|
|
wrapGAppsHook
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
wafHook
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pango
|
|
|
|
gdk-pixbuf
|
|
|
|
atk
|
2023-03-15 16:39:30 +00:00
|
|
|
gtk3
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
pygobject3
|
|
|
|
pycairo
|
|
|
|
pyxdg
|
|
|
|
dbus-python
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
# Arguments to be passed to `makeWrapper`, only used by buildPython*
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapPythonProgramsIn $out/libexec "$out $pythonPath"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-18 07:06:33 +00:00
|
|
|
description = "Time tracking application";
|
|
|
|
homepage = "http://projecthamster.org/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.fabianhauser ];
|
|
|
|
};
|
|
|
|
}
|