diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-06-10 12:28:16 +0200 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2024-07-11 10:24:56 +0100 |
commit | 8c8b23adc537690121866d45e56f4bfe1f07a67e (patch) | |
tree | aa27b5fa1d0ddb9977543179b4a2d7a0ad51d8b1 /gnu/packages/python-xyz.scm | |
parent | e36024547d9f9adf477db5bf4a598b53dabfe932 (diff) |
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
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r-- | gnu/packages/python-xyz.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 97c07c02ce..992c25bb5e 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> @@ -20192,7 +20192,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 @@ -20211,7 +20216,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")) |