mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
70 lines
1.1 KiB
Nix
70 lines
1.1 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, appstream
|
|
, appstream-glib
|
|
, wrapGAppsHook
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, gtksourceview4
|
|
, gspell
|
|
, poppler_gi
|
|
, webkitgtk
|
|
, librsvg
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "setzer";
|
|
version = "0.4.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cvfosammmm";
|
|
repo = "Setzer";
|
|
rev = "v${version}";
|
|
hash = "sha256-7NPyvAof0xObYZws3KFAbdue/GpIRthzdX00jc9GhYs=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
gettext
|
|
appstream # for appstreamcli
|
|
appstream-glib
|
|
wrapGAppsHook
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
gtksourceview4
|
|
gspell
|
|
poppler_gi
|
|
webkitgtk
|
|
librsvg
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pygobject3
|
|
pyxdg
|
|
pdfminer-six
|
|
pycairo
|
|
pexpect
|
|
];
|
|
|
|
checkPhase = ''
|
|
meson test --print-errorlogs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "LaTeX editor written in Python with Gtk";
|
|
homepage = src.meta.homepage;
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|