depot/third_party/nixpkgs/pkgs/applications/graphics/komikku/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

98 lines
1.6 KiB
Nix

{ lib
, fetchFromGitea
, desktop-file-utils
, gettext
, glib
, gobject-introspection
, blueprint-compiler
, gtk4
, libadwaita
, libnotify
, webkitgtk_6_0
, meson
, ninja
, pkg-config
, python3
, wrapGAppsHook4
, nix-update-script
}:
python3.pkgs.buildPythonApplication rec {
pname = "komikku";
version = "1.49.0";
format = "other";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "valos";
repo = "Komikku";
rev = "v${version}";
hash = "sha256-AMlhhsbwLhofV/Sy/EXuE4l0UAwZf2Gxn9+x3MHno4Y=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
gettext
glib # for glib-compile-resources
desktop-file-utils
gobject-introspection
blueprint-compiler
];
buildInputs = [
glib
gtk4
libadwaita
libnotify
webkitgtk_6_0
];
propagatedBuildInputs = with python3.pkgs; [
beautifulsoup4
brotli
colorthief
dateparser
emoji
keyring
lxml
natsort
piexif
pillow
pillow-heif
curl-cffi
pygobject3
python-magic
rarfile
requests
unidecode
];
# Tests require network
doCheck = false;
# Prevent double wrapping.
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
)
'';
passthru = {
updateScript = nix-update-script { };
};
meta = with lib; {
description = "Manga reader for GNOME";
mainProgram = "komikku";
homepage = "https://apps.gnome.org/Komikku/";
license = licenses.gpl3Plus;
changelog = "https://codeberg.org/valos/Komikku/releases/tag/v${version}";
maintainers = with maintainers; [ chuangzhu infinitivewitch ];
};
}