From f62318a6d35210d28e44586099f6db611333fbe4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Tue, 5 Aug 2025 19:01:03 +0100 Subject: [PATCH] gnu: python-cchardet: Fix tests. * gnu/packages/freedesktop.scm (python-cchardet) [arguments] : Deselect tests requiring test data file. [native-inputs]: Remove python-wheel; add python-pytest. Change-Id: I6e506740c45ffc802d3a85a2d9edb6d53423055f --- gnu/packages/freedesktop.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index f8fb05645448af253fa4b08fddbaae70d967e880..1eb3bd9b3d2a10a3b3787101e11b799a607cf68f 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -2896,10 +2896,16 @@ encoding names are iconv-compatible.") (sha256 (base32 "08wq5yfaafbjipabfc6kpyvivkk2394w7isv0mwx5agcf8cbnwnx")))) (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; No test data in PyPI archive: + ;; '<...>/tests/samples/wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt' + #~(list "--deselect=tests/test_1.py::TestCChardet::test_detector"))) (inputs (list uchardet)) (native-inputs - (list python-setuptools python-wheel)) + (list python-pytest python-setuptools)) (home-page "https://github.com/PyYoshi/cChardet") (synopsis "High-performance character encoding detection for Python") (description