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
|
|
|
|
, poppler_gi
|
|
|
|
, webkitgtk
|
|
|
|
, librsvg
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "setzer";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.4.4";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvfosammmm";
|
|
|
|
repo = "Setzer";
|
|
|
|
rev = "v${version}";
|
2022-03-10 19:12:11 +00:00
|
|
|
hash = "sha256-y39u1eSX7vzcIJzoykU7Y7FTmeZnBW/IlvJLzKHfz8Y=";
|
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
|
2020-06-18 07:06:33 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
gtksourceview4
|
|
|
|
gspell
|
|
|
|
poppler_gi
|
|
|
|
webkitgtk
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
pyxdg
|
2021-02-05 17:12:51 +00:00
|
|
|
pdfminer
|
|
|
|
pycairo
|
2021-12-06 16:07:01 +00:00
|
|
|
pexpect
|
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 ];
|
|
|
|
};
|
|
|
|
}
|