nixpkgs/pkgs/by-name/se/setzer/package.nix

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

82 lines
1.3 KiB
Nix
Raw Normal View History

2024-08-27 04:03:39 +00:00
{
appstream,
appstream-glib,
desktop-file-utils,
fetchFromGitHub,
gettext,
gobject-introspection,
gtk4,
gtksourceview5,
lib,
libadwaita,
libportal,
librsvg,
meson,
ninja,
poppler_gi,
python3Packages,
webkitgtk_6_0,
wrapGAppsHook4,
2020-06-11 17:49:48 +00:00
}:
python3Packages.buildPythonApplication rec {
2020-06-11 17:49:48 +00:00
pname = "setzer";
version = "66";
pyproject = false;
2020-06-11 17:49:48 +00:00
src = fetchFromGitHub {
owner = "cvfosammmm";
repo = "Setzer";
rev = "refs/tags/v${version}";
hash = "sha256-hqwwDR9jCk2XptcqpaReZ73jqpq4JpYD3Rc2OmrEPxg=";
2020-06-11 17:49:48 +00:00
};
nativeBuildInputs = [
meson
ninja
gettext
appstream # for appstreamcli
appstream-glib
2023-08-31 20:57:01 +00:00
wrapGAppsHook4
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 = [
2023-08-31 20:57:01 +00:00
gtk4
gtksourceview5
libadwaita
2023-07-19 22:15:37 +00:00
libportal
2023-08-31 20:57:01 +00:00
librsvg
poppler_gi
webkitgtk_6_0
2020-06-11 17:49:48 +00:00
];
dependencies = with python3Packages; [
2023-08-31 20:57:01 +00:00
bibtexparser
2023-09-23 14:27:46 +00:00
numpy
pdfminer-six
2021-11-23 00:42:10 +00:00
pexpect
2023-09-23 14:27:46 +00:00
pillow
2023-08-31 20:57:01 +00:00
pycairo
pygobject3
pyxdg
2020-06-11 17:49:48 +00:00
];
2021-01-23 15:36:35 +00:00
checkPhase = ''
runHook preCheck
2021-01-23 15:36:35 +00:00
meson test --print-errorlogs
runHook postCheck
2021-01-23 15:36:35 +00:00
'';
meta = {
2020-06-11 17:49:48 +00:00
description = "LaTeX editor written in Python with Gtk";
mainProgram = "setzer";
homepage = "https://www.cvfosammmm.org/setzer/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ dotlambda ];
2020-06-11 17:49:48 +00:00
};
}