linux/hardened/patches/6.6: v6.6.73-hardened1 -> v6.6.75-hardened1
[NixPkgs.git] / pkgs / by-name / ep / epub-thumbnailer / package.nix
blob353f8a775bb53f4292a24aa5ae1ad9488220e3d5
2   lib,
3   python3,
4   fetchFromGitHub,
5   unstableGitUpdater,
6 }:
8 python3.pkgs.buildPythonApplication {
9   pname = "epub-thumbnailer";
10   version = "0-unstable-2024-03-26";
11   pyproject = true;
13   src = fetchFromGitHub {
14     owner = "marianosimone";
15     repo = "epub-thumbnailer";
16     rev = "de4b5bf0fcd1817d560f180231f7bd22d330f1be";
17     hash = "sha256-r0t2enybUEminXOHjx6uH6LvQtmzTRPZm/gY3Vi2c64=";
18   };
20   nativeBuildInputs = with python3.pkgs; [
21     setuptools
22   ];
24   propagatedBuildInputs = with python3.pkgs; [
25     pillow
26   ];
28   postInstall = ''
29     mv $out/bin/epub-thumbnailer.py $out/bin/epub-thumbnailer
30   '';
32   passthru.updateScript = unstableGitUpdater { };
34   meta = with lib; {
35     description = "Script to extract the cover of an epub book and create a thumbnail for it";
36     homepage = "https://github.com/marianosimone/epub-thumbnailer";
37     license = licenses.gpl3Plus;
38     maintainers = with maintainers; [ GaetanLepage ];
39     mainProgram = "epub-thumbnailer";
40   };