about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/er/errands/package.nix
blob: 36a988472a912a645e066722fe32dd98905d2dad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{ lib
, fetchFromGitHub
, python3Packages
, gobject-introspection
, libadwaita
, wrapGAppsHook
, meson
, ninja
, desktop-file-utils
, pkg-config
, appstream
, libsecret
, gtk4
, gtksourceview5
}:

python3Packages.buildPythonApplication rec {
  pname = "errands";
  version = "45.1.9";

  pyproject = false;

  src = fetchFromGitHub {
    owner = "mrvladus";
    repo = "Errands";
    rev = "refs/tags/${version}";
    hash = "sha256-q8vmT7XUx3XJjPfbEd/c3HrTENfopl1MqwT0x5OuG0c=";
  };

  nativeBuildInputs = [
    gobject-introspection
    wrapGAppsHook
    desktop-file-utils
    meson
    ninja
    pkg-config
    appstream
    gtk4
  ];

  buildInputs = [
    libadwaita
    libsecret
    gtksourceview5
  ];

  propagatedBuildInputs = with python3Packages; [
    pygobject3
    lxml
    caldav
    pycryptodomex
  ];

  dontWrapGApps = true;

  preFixup = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

  meta = with lib; {
    description = "Manage your tasks";
    homepage = "https://github.com/mrvladus/Errands";
    license = licenses.mit;
    mainProgram = "errands";
    maintainers = with maintainers; [ sund3RRR ];
  };
}