From 10feffdf4ac455b8bc0229bde20ec25d27c7a2f4 Mon Sep 17 00:00:00 2001 From: Yelninei Date: Sun, 15 Mar 2026 14:53:50 +0000 Subject: [PATCH] gnu: python-elementpath: Use libc-utf-8-locales. * gnu/packages/xml.scm (python-elementpath): [phases]{set-locales phase}: Remove phase. [native-inputs]: Replace glibc-locales with libc-utf8-locales-for-target. Merges: https://codeberg.org/guix/guix/pulls/7189 Change-Id: Id89952c65ff644e5fb51dd7c0e0bf6c4791e4e3f Reviewed-by: Nicolas Graves Signed-off-by: Sharlatan Hellseher --- gnu/packages/xml.scm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm index 1dab9ea715f..6a9f76fd2c9 100644 --- a/gnu/packages/xml.scm +++ b/gnu/packages/xml.scm @@ -1940,16 +1940,9 @@ The central program included in this package is @code{onsgmls}, which replaces (build-system pyproject-build-system) (arguments (list - #:test-backend #~'unittest - #:phases - #~(modify-phases %standard-phases - ;; 10 tests fail with: locale.Error: unsupported locale setting. - (add-before 'check 'set-locales - (lambda* (#:key inputs #:allow-other-keys) - (setenv "GUIX_LOCPATH" - (search-input-directory inputs "lib/locale"))))))) + #:test-backend #~'unittest)) (native-inputs - (list glibc-locales + (list (libc-utf8-locales-for-target (%current-system)) python-setuptools python-lxml python-xmlschema-bootstrap))