python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / applications / misc / hamster / default.nix
blobdbf7e1aee746e84af2ed976b67645b3235619bb2
1 { lib, fetchFromGitHub, python3Packages, intltool, glib, itstool
2 , wrapGAppsHook, gobject-introspection, pango, gdk-pixbuf, atk, wafHook }:
4 python3Packages.buildPythonApplication rec {
5   pname = "hamster";
6   version = "3.0.2";
8   format = "other";
10   src = fetchFromGitHub {
11     owner = "projecthamster";
12     repo = pname;
13     rev = "v${version}";
14     sha256 = "09ikiwc2izjvwqbbyp8knn190x5y4anwslkmb9k2h3r3jwrg2vd2";
15   };
17   nativeBuildInputs = [
18     python3Packages.setuptools
19     wrapGAppsHook
20     intltool
21     itstool
22     wafHook
23     glib
24     gobject-introspection
25   ];
27   buildInputs = [
28     pango
29     gdk-pixbuf
30     atk
31   ];
33   propagatedBuildInputs = with python3Packages; [
34     pygobject3
35     pycairo
36     pyxdg
37     dbus-python
38   ];
40   # Setup hooks have trouble with strict deps.
41   # https://github.com/NixOS/nixpkgs/issues/56943
42   strictDeps = false;
44   dontWrapGApps = true;
46   # Arguments to be passed to `makeWrapper`, only used by buildPython*
47   preFixup = ''
48     makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
49   '';
51   postFixup = ''
52     wrapPythonProgramsIn $out/libexec "$out $pythonPath"
53   '';
55   meta = with lib; {
56     description = "Time tracking application";
57     homepage = "http://projecthamster.org/";
58     license = licenses.gpl3Plus;
59     platforms = platforms.all;
60     maintainers = [ maintainers.fabianhauser ];
61   };