diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-10-04 21:16:41 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-05 22:32:44 +0100 |
| commit | 5b0eb9f7d2f8dec2dd48ab87e557347ab549b151 (patch) | |
| tree | b01c6d72896879d85ffe8cbd4fa511004dccb5e3 /gnu/packages/python-xyz.scm | |
| parent | ff65132cff893a506cfcce0a988f0fa4d74eb141 (diff) | |
gnu: python-djvulibre: Update to 0.9.3.
python-djvulibre 0.8.6 fails with recent updates on master
branch (python-team and messa-updates merged). Old repository is
archived, new maintainer has taken over in new repository. Old PyPI
package is called python-djvulibre, new PyPI package is
djvulibre-python.
* gnu/packages/python-xyz.scm (python-djvulibre): Update to 0.9.3.
[source]: Switch to git-fetch.
<url>: Switch to new maintainer.
[build-system]: Switch to pyproject-build-system.
[arguments] <#:phases>: Replace 'check phase.
[inputs]: Remove python-cython.
[native-inputs]: Remove python-nose; add python-cython, python-pytest,
and python-setuptools.
[home-page]: Switch to new maintainer.
Fixes: guix/guix#3032
Change-Id: I5ee548ffa2debf0f1f85f3b0036fd47fc5c77a91
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 54 |
1 files changed, 37 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7960b38030..589cbce03a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34394,32 +34394,52 @@ EDU SDK. This library has the following features: (license license:expat))) (define-public python-djvulibre + ;; The original git repository of python-djvulibre is hosted at + ;; <https://jwilk.net/software/python-djvulibre>. However, that repository + ;; has been archived by its owner in 2022. The most active fork is + ;; <https://github.com/FriedrichFroebel/python-djvulibre>, and that is the + ;; version packaged here (its "python3" branch, the default). + ;; + ;; However, the python-djvulibre PyPI project still refers to the old + ;; repository. The new repository is published as djvulibre-python on PyPI; + ;; that is, with the name in reversed order.The original package name is + ;; used in Guix because it best adheres to the Guix naming scheme. (package (name "python-djvulibre") - (version "0.8.6") + (version "0.9.3") (source (origin - (method url-fetch) - (uri (pypi-uri "python-djvulibre" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/FriedrichFroebel/python-djvulibre") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "089smpq29ll0z37lnq26r2f72d31i33xm9fw9pc6hlcsm6nbjbiv")))) - (build-system python-build-system) + (base32 "0cwda210dgkqyjkwha2if80wfmv6w8baigp8kdcwhmbisfgd3l4y")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + ;; The tests get confused by the djvu directory. + (delete-file-recursively "djvu") + ;; Tests can't find tools.py otherwise. + (with-directory-excursion "tests" + (invoke "python" "-m" "pytest")))))))) (native-inputs - (list ghostscript pkg-config python-nose)) + (list ghostscript + pkg-config + python-cython + python-pytest + python-setuptools)) (inputs - (list djvulibre python-cython)) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-after 'unpack 'fix-tests - (lambda _ - ;; Unit tests try to load the 'dllpath.py' and fail, because it - ;; doesn't make sense on GNU/Linux. - (delete-file "djvu/dllpath.py") - #t))))) + (list djvulibre)) (synopsis "Python bindings for DjVuLibre") (description "This is a set of Python bindings for the DjVuLibre library.") - (home-page "https://jwilk.net/software/python-djvulibre") + (home-page "https://github.com/FriedrichFroebel/python-djvulibre") (license license:gpl2))) (define-public python-version |
