diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-12-31 07:12:22 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:23:28 +0100 |
| commit | f1d764a80116c01db92787bc835d0caadb992a3a (patch) | |
| tree | b160ba120d40899778e3441d927b7d4b392a9c04 /gnu | |
| parent | 12021475e80ce594488c78700c586b5ce41b9d09 (diff) | |
gnu: calibre: Update to 8.16.2.
* gnu/packages/ebook.scm (calibre): Update to 8.16.2.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:use-setuptools?>: Drop it.
<#:phases>: Replace phases 'build, 'install and 'check with former
variants.
[native-inputs]: Add python-setuptools, python-tzdata, python-tzlocal.
Change-Id: Ia4b4688af55aa88bae41b959a66ad2224093071a
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/ebook.scm | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index 04108953e3d..31102eaa5b4 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -143,14 +143,14 @@ with Microsoft Compiled HTML (CHM) files.") (define-public calibre (package (name "calibre") - (version "8.15.0") + (version "8.16.2") (source (origin (method url-fetch) (uri (string-append "http://download.calibre-ebook.com/" version "/calibre-" version ".tar.xz")) (sha256 - (base32 "1d2ygxf5srzdxc3jpngmq3zbz9plxnbzm4dzygpfd38szr5zwyss")) + (base32 "0v0w5hi8h1fykf1v2dqcz9zafc7ffxlh5nj125sc0g7mai1x11q1")) (modules '((guix build utils))) (snippet '(begin @@ -168,15 +168,18 @@ with Microsoft Compiled HTML (CHM) files.") "calibre-remove-test-unrar.patch" "calibre-remove-test-import-modules.patch" ; TODO: fix test )))) - (build-system python-build-system) + (build-system pyproject-build-system) (native-inputs (list bash-minimal cmake pkg-config python-flake8 python-pyqt-builder - qtbase ; for qmake - xdg-utils)) + qtbase ; for qmake + xdg-utils + python-setuptools + python-tzdata + python-tzlocal)) (inputs (list bash-minimal espeak-ng @@ -237,9 +240,6 @@ with Microsoft Compiled HTML (CHM) files.") uchardet)) (arguments (list - ;; Calibre is using setuptools by itself, but the setup.py is not - ;; compatible with the shim wrapper (taken from pip) we are using. - #:use-setuptools? #f #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-source @@ -346,6 +346,19 @@ sip-include-dirs = [\"" (lambda _ (copy-recursively "man-pages" (string-append #$output "/share/man")))) + ;; Calibre is using setuptools but the setup.py is not + ;; compatible with the shim wrapper (taken from pip) we are using. + (replace 'build + (lambda _ + (invoke "python" "setup.py" "build"))) + (replace 'install + (lambda _ + (invoke "python" "setup.py" "install" + (string-append "--prefix=" #$output)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "python" "setup.py" "test")))) ;; The font TTF files are used in some miscellaneous tests, so we ;; unbundle them here to avoid patching the tests. (add-after 'install 'unbundle-font-liberation |
