diff options
author | Wiktor Żelazny <wz@freeshell.de> | 2024-12-26 10:41:07 +0100 |
---|---|---|
committer | Guillaume Le Vaillant <glv@posteo.net> | 2024-12-29 11:33:36 +0100 |
commit | 4a4a8c9d2621d4871c4b9c8857bfb0e6e53d7e56 (patch) | |
tree | 5835eb96e70e1b45a9b925ce753b66d88c2b6f07 /gnu/packages/patches | |
parent | 16d22911e8a6fe0b06f32c14eb0104e92d717193 (diff) |
gnu: csvkit: Fix tests.
* gnu/packages/wireservice.scm (csvkit): Fix tests
[source]: Apply patch.
[native-inputs]: Add (libc-utf8-locales-for-target).
* gnu/packages/patches/csvkit-set-locale-for-tests.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
Change-Id: I787c0da270fa4062491efcfa0c55a1b8bbac7b59
Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/csvkit-set-locale-for-tests.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/patches/csvkit-set-locale-for-tests.patch b/gnu/packages/patches/csvkit-set-locale-for-tests.patch new file mode 100644 index 0000000000..52f6a5d517 --- /dev/null +++ b/gnu/packages/patches/csvkit-set-locale-for-tests.patch @@ -0,0 +1,13 @@ +Contents copied from python-agate. See +https://github.com/wireservice/agate/issues/712 for the source and the +rationale. + +diff --git a/tests/__init__.py b/tests/__init__.py +index e69de29..ee8beb5 100644 +--- a/tests/__init__.py ++++ b/tests/__init__.py +@@ -0,0 +1,4 @@ ++import locale ++ ++# The test fixtures can break if the locale is non-US. ++locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') |