aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVagrant Cascadian <vagrant@reproducible-builds.org>2025-02-26 10:37:00 -0800
committerZheng Junjie <z572@z572.online>2025-03-23 15:43:11 +0800
commit6ee20801f67fcadf1fc7963b6efc34302cc39961 (patch)
tree773524cd4a4a424d7d549e7f60aafab43c7cd0e8
parent92e3cb2e65657b9f337eee4d2867c48682b4cbbc (diff)
downloadguix-6ee20801f67fcadf1fc7963b6efc34302cc39961.tar.gz
guix-6ee20801f67fcadf1fc7963b6efc34302cc39961.zip
gnu: reprotest: Update to 0.7.29.
* gnu/packages/diffoscope.scm (reprotest): Update to 0.7.29. [phases]: Add 'adjust-importlib-resources-for-old-python. Add 'skip-most-tests. [tests]: Enable tests. Change-Id: I18e40990138162f2de31211c31efb0ffd2ccf791
-rw-r--r--gnu/packages/diffoscope.scm26
1 files changed, 21 insertions, 5 deletions
diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm
index e5259330b9..b2bc5073b9 100644
--- a/gnu/packages/diffoscope.scm
+++ b/gnu/packages/diffoscope.scm
@@ -255,7 +255,7 @@ install.")
(define-public reprotest
(package
(name "reprotest")
- (version "0.7.28")
+ (version "0.7.29")
(source
(origin
(method git-fetch)
@@ -264,13 +264,10 @@ install.")
(commit version)))
(file-name (git-file-name name version))
(sha256
- (base32 "06jm82w05qsx3wskch3fm5mpkpj5jmq7r4yram4ixprxc5j8flg8"))))
+ (base32 "17n7pdqil3jmpwcshr6dm5qsbpim3847smgxa82wy33kl2bz1ai8"))))
(build-system pyproject-build-system)
(arguments
(list
- ;; TODO: all tests failed during creation: PermissionError: [Errno 13]
- ;; Permission denied.
- #:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'compress-documentation 'make-virt-files-executable
@@ -280,6 +277,25 @@ install.")
(for-each (lambda (file)
(chmod file #o755))
(find-files #$output "autopkgtest-virt-.*"))))
+ ;; Adjust use of importlib.resources to use python 3.10 compatible
+ ;; syntax, which requires an argument.
+ ;; Drop when switching to python 3.12+.
+ (add-after 'unpack 'adjust-importlib-resources-for-old-python
+ (lambda _
+ (substitute* "reprotest/__init__.py"
+ (("importlib.resources.files\\(\\)")
+ "importlib.resources.files(package='reprotest')"))))
+ (add-after 'unpack 'skip-most-tests
+ ;; These tests require functionality not available in the guix
+ ;; build environment
+ (lambda _
+ (substitute* "tests/test_reprotest.py"
+ (("def (test_simple_build|test_self_build|test_variations)"
+ def)
+ (string-append
+ "@pytest.mark.skip(reason='guix environment lacks permissions')
+"
+ def)))))
(add-after 'install 'install-doc
(lambda _
(let* ((mandir1 (string-append