nixpkgs-suyu/pkgs/applications/misc/hamster/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Permalink Normal View History

{ 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
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"
'';
meta = with lib; {
2020-06-10 17:31:46 +02:00
description = "Time tracking application";
mainProgram = "hamster";
2020-06-10 17:31:46 +02:00
homepage = "http://projecthamster.org/";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = [ maintainers.fabianhauser ];
};
}