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