2020-06-11 17:49:48 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, appstream
|
|
|
|
, appstream-glib
|
|
|
|
, wrapGAppsHook
|
2021-01-16 09:47:15 +00:00
|
|
|
, desktop-file-utils
|
2020-06-11 17:49:48 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, gtksourceview4
|
|
|
|
, gspell
|
|
|
|
, poppler_gi
|
|
|
|
, webkitgtk
|
|
|
|
, librsvg
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "setzer";
|
2022-08-11 15:12:59 +00:00
|
|
|
version = "0.4.8";
|
2020-06-11 17:49:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cvfosammmm";
|
|
|
|
repo = "Setzer";
|
|
|
|
rev = "v${version}";
|
2022-08-11 15:12:59 +00:00
|
|
|
hash = "sha256-7NPyvAof0xObYZws3KFAbdue/GpIRthzdX00jc9GhYs=";
|
2020-06-11 17:49:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
appstream # for appstreamcli
|
|
|
|
appstream-glib
|
|
|
|
wrapGAppsHook
|
2021-01-16 09:47:15 +00:00
|
|
|
desktop-file-utils
|
2022-08-11 15:12:59 +00:00
|
|
|
gobject-introspection
|
2020-06-11 17:49:48 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtksourceview4
|
|
|
|
gspell
|
|
|
|
poppler_gi
|
|
|
|
webkitgtk
|
|
|
|
librsvg
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygobject3
|
|
|
|
pyxdg
|
2022-05-25 04:20:00 +00:00
|
|
|
pdfminer-six
|
2021-01-18 08:40:24 +00:00
|
|
|
pycairo
|
2021-11-23 00:42:10 +00:00
|
|
|
pexpect
|
2020-06-11 17:49:48 +00:00
|
|
|
];
|
|
|
|
|
2021-01-23 15:36:35 +00:00
|
|
|
checkPhase = ''
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
2020-06-11 17:49:48 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "LaTeX editor written in Python with Gtk";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|