gtg: 0.5 -> 0.6

This commit is contained in:
Guillaume Girol 2022-06-04 12:00:00 +00:00
parent f3efa1d285
commit a65fab6b62

View File

@ -7,33 +7,27 @@
, gtk3 , gtk3
, wrapGAppsHook , wrapGAppsHook
, glib , glib
, gtksourceview4
, itstool , itstool
, gettext , gettext
, pango , pango
, gdk-pixbuf , gdk-pixbuf
, libsecret
, gobject-introspection , gobject-introspection
, xvfb-run , xvfb-run
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "gtg"; pname = "gtg";
version = "0.5"; version = "0.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "getting-things-gnome"; owner = "getting-things-gnome";
repo = "gtg"; repo = "gtg";
rev = "v${version}"; rev = "v${version}";
sha256 = "0b2slm7kjq6q8c7v4m7aqc8m1ynjxn3bl7445srpv1xc0dilq403"; sha256 = "sha256-O8qBD92P2g8QrBdMXa6j0Ozk+W80Ny5yk0KNTy7ekfE=";
}; };
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=";
})
];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -46,8 +40,10 @@ python3Packages.buildPythonApplication rec {
buildInputs = [ buildInputs = [
glib glib
gtk3 gtk3
gtksourceview4
pango pango
gdk-pixbuf gdk-pixbuf
libsecret
]; ];
propagatedBuildInputs = with python3Packages; [ propagatedBuildInputs = with python3Packages; [
@ -56,12 +52,14 @@ python3Packages.buildPythonApplication rec {
lxml lxml
gst-python gst-python
liblarch liblarch
caldav
]; ];
checkInputs = with python3Packages; [ checkInputs = with python3Packages; [
nose nose
mock mock
xvfb-run xvfb-run
pytest
]; ];
preBuild = '' preBuild = ''
@ -71,7 +69,7 @@ python3Packages.buildPythonApplication rec {
format = "other"; format = "other";
strictDeps = false; # gobject-introspection does not run with strictDeps (https://github.com/NixOS/nixpkgs/issues/56943) strictDeps = false; # gobject-introspection does not run with strictDeps (https://github.com/NixOS/nixpkgs/issues/56943)
checkPhase = "xvfb-run python3 ../run-tests"; checkPhase = "xvfb-run pytest ../tests/";
meta = with lib; { meta = with lib; {
description = " A personal tasks and TODO-list items organizer"; description = " A personal tasks and TODO-list items organizer";