guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: python-chardet: Update to 5.1.0.


From: guix-commits
Subject: 02/04: gnu: python-chardet: Update to 5.1.0.
Date: Mon, 12 Dec 2022 08:50:40 -0500 (EST)

mbakke pushed a commit to branch staging
in repository guix.

commit d47b3d9e4b156930023803926a6592478c5de67c
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Dec 12 11:04:56 2022 +0100

    gnu: python-chardet: Update to 5.1.0.
    
    * gnu/packages/python-xyz.scm (python-chardet): Update to 5.1.0.
    [build-system]: Change to PYPROJECT-BUILD-SYSTEM.
    [arguments]: Remove custom check phase in favor of #:test-flags.
---
 gnu/packages/python-xyz.scm | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 40c3f9c99c..d01a4adc45 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14130,26 +14130,24 @@ simulation, statistical modeling, machine learning 
and much more.")
 (define-public python-chardet
   (package
     (name "python-chardet")
-    (version "5.0.0")
+    (version "5.1.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "chardet" version))
        (sha256
         (base32
-         "1amqmz8731ly6f9rkbk09w4jqgmmgyxykd1bawhgrdbqzlmxys03"))))
+         "1r9ixxnish9j3dq4h0z0cwlkr4f5lgi6d8mhbzw59hbbjlmp2qhd"))))
     (native-inputs
      (list python-pytest))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     (list #:phases
+     (list #:test-flags
+           ;; Disable test that fails sporadically:
+           ;; https://github.com/chardet/chardet/issues/256
+           #~'("-k" "not test_detect_all_and_detect_one_should_agree")
+           #:phases
            #~(modify-phases %standard-phases
-               (replace 'check
-                 (lambda _
-                   (invoke "pytest" "-vv" "-k"
-                           ;; Disable test that fails sporadically:
-                           ;; https://github.com/chardet/chardet/issues/256
-                           "not test_detect_all_and_detect_one_should_agree")))
                ;; This package provides a 'chardetect' executable that only
                ;; depends on Python, so customize the wrap phase to avoid
                ;; adding pytest and friends in order to save size.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]