diff options
| author | Vagrant Cascadian <vagrant@reproducible-builds.org> | 2025-02-26 10:37:00 -0800 |
|---|---|---|
| committer | Zheng Junjie <z572@z572.online> | 2025-03-23 15:43:11 +0800 |
| commit | 6ee20801f67fcadf1fc7963b6efc34302cc39961 (patch) | |
| tree | 773524cd4a4a424d7d549e7f60aafab43c7cd0e8 /gnu | |
| parent | 92e3cb2e65657b9f337eee4d2867c48682b4cbbc (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/diffoscope.scm | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/gnu/packages/diffoscope.scm b/gnu/packages/diffoscope.scm index e5259330b9f..b2bc5073b95 100644 --- a/gnu/packages/diffoscope.scm +++ b/gnu/packages/diffoscope.scm | |||
| @@ -255,7 +255,7 @@ install.") | |||
| 255 | (define-public reprotest | 255 | (define-public reprotest |
| 256 | (package | 256 | (package |
| 257 | (name "reprotest") | 257 | (name "reprotest") |
| 258 | (version "0.7.28") | 258 | (version "0.7.29") |
| 259 | (source | 259 | (source |
| 260 | (origin | 260 | (origin |
| 261 | (method git-fetch) | 261 | (method git-fetch) |
| @@ -264,13 +264,10 @@ install.") | |||
| 264 | (commit version))) | 264 | (commit version))) |
| 265 | (file-name (git-file-name name version)) | 265 | (file-name (git-file-name name version)) |
| 266 | (sha256 | 266 | (sha256 |
| 267 | (base32 "06jm82w05qsx3wskch3fm5mpkpj5jmq7r4yram4ixprxc5j8flg8")))) | 267 | (base32 "17n7pdqil3jmpwcshr6dm5qsbpim3847smgxa82wy33kl2bz1ai8")))) |
| 268 | (build-system pyproject-build-system) | 268 | (build-system pyproject-build-system) |
| 269 | (arguments | 269 | (arguments |
| 270 | (list | 270 | (list |
| 271 | ;; TODO: all tests failed during creation: PermissionError: [Errno 13] | ||
| 272 | ;; Permission denied. | ||
| 273 | #:tests? #f | ||
| 274 | #:phases | 271 | #:phases |
| 275 | #~(modify-phases %standard-phases | 272 | #~(modify-phases %standard-phases |
| 276 | (add-after 'compress-documentation 'make-virt-files-executable | 273 | (add-after 'compress-documentation 'make-virt-files-executable |
| @@ -280,6 +277,25 @@ install.") | |||
| 280 | (for-each (lambda (file) | 277 | (for-each (lambda (file) |
| 281 | (chmod file #o755)) | 278 | (chmod file #o755)) |
| 282 | (find-files #$output "autopkgtest-virt-.*")))) | 279 | (find-files #$output "autopkgtest-virt-.*")))) |
| 280 | ;; Adjust use of importlib.resources to use python 3.10 compatible | ||
| 281 | ;; syntax, which requires an argument. | ||
| 282 | ;; Drop when switching to python 3.12+. | ||
| 283 | (add-after 'unpack 'adjust-importlib-resources-for-old-python | ||
| 284 | (lambda _ | ||
| 285 | (substitute* "reprotest/__init__.py" | ||
| 286 | (("importlib.resources.files\\(\\)") | ||
| 287 | "importlib.resources.files(package='reprotest')")))) | ||
| 288 | (add-after 'unpack 'skip-most-tests | ||
| 289 | ;; These tests require functionality not available in the guix | ||
| 290 | ;; build environment | ||
| 291 | (lambda _ | ||
| 292 | (substitute* "tests/test_reprotest.py" | ||
| 293 | (("def (test_simple_build|test_self_build|test_variations)" | ||
| 294 | def) | ||
| 295 | (string-append | ||
| 296 | "@pytest.mark.skip(reason='guix environment lacks permissions') | ||
| 297 | " | ||
| 298 | def))))) | ||
| 283 | (add-after 'install 'install-doc | 299 | (add-after 'install 'install-doc |
| 284 | (lambda _ | 300 | (lambda _ |
| 285 | (let* ((mandir1 (string-append | 301 | (let* ((mandir1 (string-append |
