forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ep / epub-thumbnailer / package.nix
blob4338e037f65ec2e44b5deb754891352160c6f512
1 { lib
2 , python3
3 , fetchFromGitHub
4 , unstableGitUpdater
5 }:
7 python3.pkgs.buildPythonApplication {
8   pname = "epub-thumbnailer";
9   version = "0-unstable-2024-03-26";
10   pyproject = true;
12   src = fetchFromGitHub {
13     owner = "marianosimone";
14     repo = "epub-thumbnailer";
15     rev = "de4b5bf0fcd1817d560f180231f7bd22d330f1be";
16     hash = "sha256-r0t2enybUEminXOHjx6uH6LvQtmzTRPZm/gY3Vi2c64=";
17   };
19   nativeBuildInputs = with python3.pkgs; [
20     setuptools
21   ];
23   propagatedBuildInputs = with python3.pkgs; [
24     pillow
25   ];
27   postInstall = ''
28     mv $out/bin/epub-thumbnailer.py $out/bin/epub-thumbnailer
29   '';
31   passthru.updateScript = unstableGitUpdater { };
33   meta = with lib; {
34     description = "Script to extract the cover of an epub book and create a thumbnail for it";
35     homepage = "https://github.com/marianosimone/epub-thumbnailer";
36     license = licenses.gpl3Plus;
37     maintainers = with maintainers; [ GaetanLepage ];
38     mainProgram = "epub-thumbnailer";
39   };