2022-12-29 17:40:14 +01:00
|
|
|
{ lib, fetchFromGitHub, python3Packages, intltool, glib, itstool, gtk3
|
2023-09-03 02:24:44 +02:00
|
|
|
, wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }:
|
2020-06-10 17:31:46 +02:00
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "hamster";
|
2024-01-22 17:14:06 +01:00
|
|
|
version = "3.0.3";
|
2020-06-10 17:31:46 +02:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "projecthamster";
|
|
|
|
repo = pname;
|
2024-01-22 17:14:06 +01:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-cUmUvJP9Y3de5OaNgIxvigDsX2ww7NNRY5son/gg+WI=";
|
2020-06-10 17:31:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3Packages.setuptools
|
|
|
|
wrapGAppsHook
|
|
|
|
intltool
|
|
|
|
itstool
|
2023-09-03 02:24:44 +02:00
|
|
|
wafHook
|
2020-06-10 17:31:46 +02:00
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pango
|
|
|
|
gdk-pixbuf
|
|
|
|
atk
|
2022-12-29 17:40:14 +01:00
|
|
|
gtk3
|
2020-06-10 17:31:46 +02: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-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-10 17:31:46 +02:00
|
|
|
description = "Time tracking application";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "hamster";
|
2020-06-10 17:31:46 +02:00
|
|
|
homepage = "http://projecthamster.org/";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.fabianhauser ];
|
|
|
|
};
|
|
|
|
}
|