@@ -0,0 +1,68 @@
1+{ lib
2+, python3
3+, fetchFromSourcehut
4+, desktop-file-utils
5+, glib
6+, gobject-introspection
7+, gtk3
8+, libhandy
9+, librsvg
10+, meson
11+, ninja
12+, pkg-config
13+, wrapGAppsHook
14+}:
15+
16+python3.pkgs.buildPythonApplication rec {
17+ pname = "numberstation";
18+ version = "0.4.0";
19+
20+ format = "other";
21+
22+ src = fetchFromSourcehut {
23+ owner = "~martijnbraam";
24+ repo = "numberstation";
25+ rev = version;
26+ sha256 = "038yyffqknr274f7jh5z12y68pjxr37f8y2cn2pwhf605jmbmpwv";
27+ };
28+
29+ postPatch = ''
30+ patchShebangs build-aux/meson
31+ '';
32+
33+ nativeBuildInputs = [
34+ desktop-file-utils
35+ glib
36+ gtk3
37+ meson
38+ ninja
39+ pkg-config
40+ wrapGAppsHook
41+ ];
42+
43+ buildInputs = [
44+ gobject-introspection
45+ gtk3
46+ libhandy
47+ librsvg
48+ ];
49+
50+ propagatedBuildInputs = with python3.pkgs; [
51+ keyring
52+ pygobject3
53+ pyotp
54+ ];
55+
56+ dontWrapGApps = true;
57+
58+ preFixup = ''
59+ makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
60+ '';
61+
62+ meta = with lib; {
63+ description = "TOTP Authentication application for mobile";
64+ homepage = "https://sr.ht/~martijnbraam/numberstation/";
65+ license = licenses.gpl3Only;
66+ maintainers = with maintainers; [ dotlambda ];
67+ };
68+}