mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
78 lines
1.2 KiB
Nix
78 lines
1.2 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
, meson
|
|
, ninja
|
|
, gettext
|
|
, appstream
|
|
, appstream-glib
|
|
, wrapGAppsHook4
|
|
, desktop-file-utils
|
|
, gobject-introspection
|
|
, gtk4
|
|
, gtksourceview5
|
|
, libadwaita
|
|
, libportal
|
|
, librsvg
|
|
, poppler_gi
|
|
, webkitgtk_6_0
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "setzer";
|
|
version = "65";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cvfosammmm";
|
|
repo = "Setzer";
|
|
rev = "v${version}";
|
|
hash = "sha256-5Hpj/RkD11bNcr9/gQG0Y7BNMsh1BGZQiN4IMbI4osc=";
|
|
};
|
|
|
|
format = "other";
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
gettext
|
|
appstream # for appstreamcli
|
|
appstream-glib
|
|
wrapGAppsHook4
|
|
desktop-file-utils
|
|
gobject-introspection
|
|
];
|
|
|
|
buildInputs = [
|
|
gtk4
|
|
gtksourceview5
|
|
libadwaita
|
|
libportal
|
|
librsvg
|
|
poppler_gi
|
|
webkitgtk_6_0
|
|
];
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
bibtexparser
|
|
numpy
|
|
pdfminer-six
|
|
pexpect
|
|
pillow
|
|
pycairo
|
|
pygobject3
|
|
pyxdg
|
|
];
|
|
|
|
checkPhase = ''
|
|
meson test --print-errorlogs
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "LaTeX editor written in Python with Gtk";
|
|
mainProgram = "setzer";
|
|
homepage = src.meta.homepage;
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|