[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates updated: gnu: python-magic: Adjust test suite.
From: |
guix-commits |
Subject: |
branch core-updates updated: gnu: python-magic: Adjust test suite. |
Date: |
Mon, 10 Jun 2024 06:29:36 -0400 |
This is an automated email from the git hooks/post-receive script.
civodul pushed a commit to branch core-updates
in repository guix.
The following commit(s) were added to refs/heads/core-updates by this push:
new 145491d286 gnu: python-magic: Adjust test suite.
145491d286 is described below
commit 145491d286029c4f8eca47836c8ac89e8df20e05
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jun 10 12:28:16 2024 +0200
gnu: python-magic: Adjust test suite.
* gnu/packages/python-xyz.scm (python-magic)[source]: Add snippet.
[arguments]: In ‘check’ phase, install C.UTF-8 instead of en_US.UTF-8.
Change-Id: I0f898584b3ad0bab4dc929d52578b6acfcbdda67
---
gnu/packages/python-xyz.scm | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c6265612de..623c1c706d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
-;;; Copyright © 2013-2023 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013-2024 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2013, 2014, 2015, 2016, 2019, 2023 Andreas Enge
<andreas@enge.fr>
;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2014, 2017, 2021, 2022 Eric Bavier <bavier@posteo.net>
@@ -20158,7 +20158,12 @@ for Python inspired by modern web development.")
(file-name (git-file-name name version))
(sha256
(base32
- "1x11kfn4g244fia9a7y4ly8dqv5zsxfg3l5azc54dl6gkp2bk7vx"))))
+ "1x11kfn4g244fia9a7y4ly8dqv5zsxfg3l5azc54dl6gkp2bk7vx"))
+ (modules '((guix build utils)))
+ ;; Adjust expected output for file@5.45.
+ (snippet #~(substitute* "test/libmagic_test.py"
+ (("PDF document, version 1\\.2, 2 pages")
+ "PDF document, version 1.2, 2 page(s)")))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases
@@ -20177,7 +20182,7 @@ for Python inspired by modern web development.")
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
;; The test suite mandates this variable.
- (setenv "LC_ALL" "en_US.UTF-8")
+ (setenv "LC_ALL" "C.UTF-8")
(if tests?
(with-directory-excursion "test"
(invoke "python" "./libmagic_test.py"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates updated: gnu: python-magic: Adjust test suite.,
guix-commits <=