nixpkgs/pkgs/applications/office/gtg/default.nix

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

89 lines
2.0 KiB
Nix
Raw Normal View History

{ lib
2020-08-04 17:18:47 +00:00
, fetchFromGitHub
, fetchpatch
2020-08-04 17:18:47 +00:00
, meson
, python3Packages
, ninja
, gtk3
, wrapGAppsHook
, glib
, itstool
, gettext
, pango
, gdk-pixbuf
, gobject-introspection
2021-05-08 13:45:03 +00:00
, xvfb-run
2020-08-04 17:18:47 +00:00
}:
python3Packages.buildPythonApplication rec {
pname = "gtg";
2021-04-06 20:27:53 +00:00
version = "0.5";
2020-08-04 17:18:47 +00:00
src = fetchFromGitHub {
owner = "getting-things-gnome";
repo = "gtg";
2021-04-06 20:27:53 +00:00
rev = "v${version}";
sha256 = "0b2slm7kjq6q8c7v4m7aqc8m1ynjxn3bl7445srpv1xc0dilq403";
2020-08-04 17:18:47 +00:00
};
patches = [
# fix build with meson 0.60 (https://github.com/getting-things-gnome/gtg/pull/729)
(fetchpatch {
url = "https://github.com/getting-things-gnome/gtg/commit/1809d10663ae3d8f69c04138b66f9b4e66ee14f6.patch";
sha256 = "sha256-bYr5PAsuvcSqTf0vaJj2APtuBrwHdhXJxtXoAb7CfGk=";
})
];
2020-08-04 17:18:47 +00:00
nativeBuildInputs = [
meson
ninja
itstool
gettext
2020-08-04 17:18:47 +00:00
wrapGAppsHook
gobject-introspection
];
buildInputs = [
glib
gtk3
pango
gdk-pixbuf
];
propagatedBuildInputs = with python3Packages; [
pycairo
pygobject3
lxml
gst-python
liblarch
];
2020-09-01 19:31:43 +00:00
checkInputs = with python3Packages; [
nose
mock
2021-05-08 13:45:03 +00:00
xvfb-run
2020-09-01 19:31:43 +00:00
];
2021-04-06 20:27:53 +00:00
preBuild = ''
export HOME="$TMP"
'';
2020-08-04 17:18:47 +00:00
format = "other";
strictDeps = false; # gobject-introspection does not run with strictDeps (https://github.com/NixOS/nixpkgs/issues/56943)
2020-08-04 17:18:47 +00:00
checkPhase = "xvfb-run python3 ../run-tests";
2020-09-01 19:31:43 +00:00
meta = with lib; {
description = " A personal tasks and TODO-list items organizer";
longDescription = ''
"Getting Things GNOME" (GTG) is a personal tasks and ToDo list organizer inspired by the "Getting Things Done" (GTD) methodology.
2020-08-04 17:18:47 +00:00
GTG is intended to help you track everything you need to do and need to know, from small tasks to large projects.
'';
2020-08-04 17:18:47 +00:00
homepage = "https://wiki.gnome.org/Apps/GTG";
downloadPage = "https://github.com/getting-things-gnome/gtg/releases";
license = licenses.gpl3Plus;
2020-08-04 17:18:47 +00:00
maintainers = with maintainers; [ oyren ];
platforms = platforms.linux;
2020-08-04 17:18:47 +00:00
};
}