2020-06-18 07:06:33 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, appstream
|
|
|
|
, appstream-glib
|
|
|
|
, wrapGAppsHook
|
2021-01-17 00:15:33 +00:00
|
|
|
, desktop-file-utils
|
2020-06-18 07:06:33 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gtksourceview4
|
|
|
|
, gspell
|
2023-04-29 16:46:19 +00:00
|
|
|
, libhandy
|
2020-06-18 07:06:33 +00:00
|
|
|
, poppler_gi
|
2023-04-29 16:46:19 +00:00
|
|
|
, webkitgtk_4_1
|
2020-06-18 07:06:33 +00:00
|
|
|
, librsvg
|
2023-08-04 22:07:22 +00:00
|
|
|
, libportal
|
2020-06-18 07:06:33 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "setzer";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "56";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvfosammmm";
|
|
|
|
repo = "Setzer";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-YCJu8EU+8RD09QNVT/RYF2ZJZ7cp+oawXThqTzg8ENQ=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
appstream # for appstreamcli
|
|
|
|
appstream-glib
|
|
|
|
wrapGAppsHook
|
2021-01-17 00:15:33 +00:00
|
|
|
desktop-file-utils
|
2022-08-21 13:32:41 +00:00
|
|
|
gobject-introspection
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtksourceview4
|
|
|
|
gspell
|
2023-04-29 16:46:19 +00:00
|
|
|
libhandy
|
2020-06-18 07:06:33 +00:00
|
|
|
poppler_gi
|
2023-04-29 16:46:19 +00:00
|
|
|
webkitgtk_4_1
|
2020-06-18 07:06:33 +00:00
|
|
|
librsvg
|
2023-08-04 22:07:22 +00:00
|
|
|
libportal
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
pyxdg
|
2022-06-16 17:23:12 +00:00
|
|
|
pdfminer-six
|
2021-02-05 17:12:51 +00:00
|
|
|
pycairo
|
2021-12-06 16:07:01 +00:00
|
|
|
pexpect
|
2023-08-04 22:07:22 +00:00
|
|
|
bibtexparser
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
checkPhase = ''
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "LaTeX editor written in Python with Gtk";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|