mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-25 03:55:08 -06:00
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>
This commit is contained in:
parent
bda579fbca
commit
be6ce4b032
1 changed files with 21 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue