guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 835f8da5960d2e267141963f328ae3dbac021d51
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Tue Aug 5 19:01:03 2025 +0100
gnu: python-cchardet: Fix tests.
* gnu/packages/freedesktop.scm (python-cchardet) [arguments]
<test-flags>: 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 46eaa95ddb..75d2094adb 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