[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
13/13: gnu: python-rarfile: Update to 4.0.
From: |
guix-commits |
Subject: |
13/13: gnu: python-rarfile: Update to 4.0. |
Date: |
Sat, 4 Sep 2021 09:07:49 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit e82b103a776e4816682178432fd278aacc3d4004
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri Sep 3 11:00:24 2021 +0200
gnu: python-rarfile: Update to 4.0.
This package is close to useless, because we lack the non-free unrar
utility and the libarchive backend does not support most operations.
* gnu/packages/python-xyz.scm (python-rarfile)[version]: Update to 4.0.
[arguments]: Disable tests.
[propagated-inputs]: Move…
[inputs]: …here.
[native-inputs]: Add pytest.
[#:phases]: Use pytest for 'check and Add 'patch phase.
(python2-rarfile): Remove, unsupported by upstream.
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 830c18d..7c70829 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13910,33 +13910,39 @@ can also be used to get the exact location, font or
color of the text.")
(define-public python-rarfile
(package
(name "python-rarfile")
- (version "2.8")
+ (version "4.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "rarfile" version))
(sha256
(base32
- "0qfad483kcbga0bn4qmcz953xjk16r52fahiy46zzn56v80y89ra"))))
+ "1882wv9szcm29mnyhjmspyflyr2l7z73srn14w4dlnww49lqfm37"))))
(build-system python-build-system)
(arguments
- '(#:phases
+ `(#:tests? #f ;; The bsdtar utility is very limited and most tests fail.
+ #:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "rarfile.py"
+ ;; Disable unrar and unar, which are unavailable on Guix.
+ (("(unrar|unar)=True" all tool) (string-append tool "=False"))
+ ;; Hardcode path to bsdtar
+ (("\"bsdtar\"")
+ (string-append "\"" (assoc-ref inputs "libarchive")
"/bin/bsdtar\"")))
+ #t))
(replace 'check
- ;; Many tests fail, but the installation proceeds.
- (lambda _ (invoke "make" "-C" "test" "test"))))))
- (native-inputs
- `(("which" ,which))) ; required for tests
- (propagated-inputs
- `(("libarchive" ,libarchive)))
+ (lambda* (#:key inputs tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
+ (native-inputs `(("python-pytest" ,python-pytest)))
+ (inputs `(("libarchive" ,libarchive)))
(home-page "https://github.com/markokr/rarfile")
(synopsis "RAR archive reader for Python")
(description "This is Python module for RAR archive reading. The interface
is made as zipfile like as possible.")
(license license:isc)))
-(define-public python2-rarfile
- (package-with-python2 python-rarfile))
-
(define-public python-rich
(package
(name "python-rich")
- branch master updated (1fd0bf6 -> e82b103), guix-commits, 2021/09/04
- 01/13: gnu: python-confuse: Update to 1.5.0., guix-commits, 2021/09/04
- 03/13: gnu: python-mediafile: Update to 0.7.0., guix-commits, 2021/09/04
- 05/13: gnu: beets-bandcamp: Update to 0.1.4., guix-commits, 2021/09/04
- 04/13: gnu: python-discogs-client: Update to 2.3.12., guix-commits, 2021/09/04
- 09/13: gnu: python-mutagen: Update home-page., guix-commits, 2021/09/04
- 12/13: gnu: python-jellyfish: Update to 0.8.8., guix-commits, 2021/09/04
- 10/13: gnu: python-musicbrainzngs: Update to 0.7.1., guix-commits, 2021/09/04
- 07/13: gnu: python-pylast: Update to 4.2.1., guix-commits, 2021/09/04
- 13/13: gnu: python-rarfile: Update to 4.0.,
guix-commits <=
- 08/13: gnu: python-mpd2: Update to 3.0.4., guix-commits, 2021/09/04
- 06/13: gnu: beets: Update to 1.5.0., guix-commits, 2021/09/04
- 11/13: gnu: python-munkres: Update to 1.1.4., guix-commits, 2021/09/04
- 02/13: gnu: python-pyacoustid: Update to 1.2.2., guix-commits, 2021/09/04