summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorZheng Junjie <z572@z572.online>2025-06-23 18:43:16 +0800
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:36 +0200
commit7d3fd78e8429a99e1f1666adec406e967ef5086e (patch)
tree4ea2c7e8e26229fe12c2034d02bfcdb4c821d048 /gnu/packages/python-xyz.scm
parent71d6644b189efdc49fb31ffd5d22d7e67f696f6e (diff)
gnu: python-libarchive-c: Update to 5.2.
* gnu/packages/python-xyz.scm (python-libarchive-c): Update to 5.2. [source]: Adjust pyppi name. [build-system]: Switch to pyproject-build-system. [native-inputs]: Remove python-mock; add python-setuptools and python-wheel. [arguments]: Use G-expressions. Change-Id: I9a5e30c7b18e95e668713cd6bef4aed1ad7a0602
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm34
1 files changed, 17 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e9cfb4283d..5200928f51 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -18606,29 +18606,29 @@ background.")
(define-public python-libarchive-c
(package
(name "python-libarchive-c")
- (version "2.9")
+ (version "5.2")
(source (origin
(method url-fetch)
- (uri (pypi-uri "libarchive-c" version))
+ (uri (pypi-uri "libarchive_c" version))
(sha256
(base32
- "0q7g6a97110bk0j5x81555kajyxh4sybaabab6v5sgr0xi6386cr"))))
- (build-system python-build-system)
+ "05vl0pjpv5wqy9xybzixjv9anvih9yjx361c4rw6xbq9hpiahi7x"))))
+ (build-system pyproject-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (add-before
- 'build 'reference-libarchive
- (lambda* (#:key inputs #:allow-other-keys)
- ;; Retain the absolute file name of libarchive.so.
- (let ((libarchive (assoc-ref inputs "libarchive")))
- (substitute* "libarchive/ffi.py"
- (("find_library\\('archive'\\)")
- (string-append "'" libarchive
- "/lib/libarchive.so'"))))))
- (replace 'check
- (lambda _ (invoke "pytest" "-vv"))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'reference-libarchive
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Retain the absolute file name of libarchive.so.
+ (substitute* "libarchive/ffi.py"
+ (("find_library\\('archive'\\)")
+ (string-append
+ "'"
+ (search-input-file inputs "/lib/libarchive.so")
+ "'"))))))))
(native-inputs
- (list python-mock python-pytest))
+ (list python-setuptools python-wheel python-pytest))
(inputs
(list libarchive))
(home-page "https://github.com/Changaco/python-libarchive-c")