~ruther/guix-local

f62318a6d35210d28e44586099f6db611333fbe4 — Sharlatan Hellseher 7 months ago a0944ca
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
1 files changed, 7 insertions(+), 1 deletions(-)

M gnu/packages/freedesktop.scm
M gnu/packages/freedesktop.scm => gnu/packages/freedesktop.scm +7 -1
@@ 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