nixpkgs/pkgs/by-name/ha/hamster/package.nix

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

64 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, fetchFromGitHub, python3Packages, intltool, glib, itstool, gtk3
, wrapGAppsHook3, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }:
2020-06-10 15:31:46 +00:00
python3Packages.buildPythonApplication rec {
pname = "hamster";
2024-01-22 16:14:06 +00:00
version = "3.0.3";
2020-06-10 15:31:46 +00:00
format = "other";
src = fetchFromGitHub {
owner = "projecthamster";
repo = pname;
2024-01-22 16:14:06 +00:00
rev = "refs/tags/v${version}";
sha256 = "sha256-cUmUvJP9Y3de5OaNgIxvigDsX2ww7NNRY5son/gg+WI=";
2020-06-10 15:31:46 +00:00
};
nativeBuildInputs = [
python3Packages.setuptools
wrapGAppsHook3
2020-06-10 15:31:46 +00:00
intltool
itstool
2023-09-03 00:24:44 +00:00
wafHook
2020-06-10 15:31:46 +00:00
glib
gobject-introspection
];
buildInputs = [
pango
gdk-pixbuf
atk
gtk3
2020-06-10 15:31:46 +00:00
];
propagatedBuildInputs = with python3Packages; [
pygobject3
pycairo
pyxdg
setuptools
2020-06-10 15:31:46 +00:00
dbus-python
];
PYTHONDIR = "${placeholder "out"}/${python3Packages.python.sitePackages}";
2020-06-10 15:31:46 +00:00
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 15:31:46 +00:00
description = "Time tracking application";
mainProgram = "hamster";
2020-06-10 15:31:46 +00:00
homepage = "http://projecthamster.org/";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = [ maintainers.fabianhauser ];
};
}