@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2024 Felix Gruber <felgru@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -20,7 +21,7 @@ (define-module (gnu packages patool)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix git-download)
#:use-module (guix packages)
- #:use-module (guix build-system python)
+ #:use-module (guix build-system pyproject)
#:use-module (gnu packages)
#:use-module (gnu packages backup)
#:use-module (gnu packages cdrom)
@@ -35,7 +36,7 @@ (define-module (gnu packages patool)
(define-public patool
(package
(name "patool")
- (version "1.12")
+ (version "2.1.0")
(source
(origin
(method git-fetch) ;no test data in PyPI archive
@@ -45,14 +46,16 @@ (define-public patool
(file-name (git-file-name name version))
(sha256
(base32
- "0zgvgx9549rvb57rgkpjalydz46k71gibfs6ab3b3sy439s0ay4h"))))
- (build-system python-build-system)
+ "1nbn3wbcbng17jf18sx7aks8mkyvy08w32xwvczqmw91pn5r0vpw"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest")))))))
+ (list
+ #:test-flags
+ ;disable failing tests
+ '(list (string-append "-k (not test_mime_file_gzip"
+ " and not test_bsdtar_gz_file"
+ " and not test_py_tarfile_gz_file"
+ " and not test_tar_gz_file)"))))
(native-inputs
(list bzip2
cabextract