guix-commits
[Top][All Lists]
Advanced

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

323/361: gnu: python-flaky: Update to 3.8.1.


From: guix-commits
Subject: 323/361: gnu: python-flaky: Update to 3.8.1.
Date: Fri, 22 Nov 2024 06:01:07 -0500 (EST)

andreas pushed a commit to branch python-team
in repository guix.

commit c6dc3a90df38dbffadb4807612be524409b22ba7
Author: Sharlatan Hellseher <sharlatanus@gmail.com>
AuthorDate: Mon Nov 11 22:04:06 2024 +0000

    gnu: python-flaky: Update to 3.8.1.
    
    * gnu/packages/check.scm (python-flaky): Update to 3.8.1. Enable most of
    the tests.
    [build-system]: Swap to pyproject-build-system.
    [arguments]<test-flags>: Silent some failing tests.
    [native-inputs]: Add python-pytest, python-setuptools, and python-wheel.
    
    Change-Id: I649ff32ad27ffcca288e2929388a5b787f31072f
---
 gnu/packages/check.scm | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index f118c4a870..4d75b9b822 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -3613,17 +3613,31 @@ mocks, stubs and fakes.")
 (define-public python-flaky
   (package
     (name "python-flaky")
-    (version "3.7.0")
+    (version "3.8.1")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "flaky" version))
               (sha256
                (base32
-                "03daz352021211kvdb056f3afrd2gsdq0rd1awgr38910xw01l9s"))))
-    (build-system python-build-system)
+                "1xcrjrr63131n2ydj5hn0gagka5dpkmdlqdxrxd3spwhxj0ll827"))))
+    (build-system pyproject-build-system)
     (arguments
-     ;; TODO: Tests require 'coveralls' and 'genty' which are not in Guix yet.
-     '(#:tests? #f))
+     (list
+      ;; XXX: Check with upstream. Tests failing with AttributeError: 'str'
+      ;; object has no attribute 'tb_frame', ValueError: too many values to
+      ;; unpack (expected 2), AssertionError: 'Plain HelloPlain Hellońőń ȁŝćȉȉ
+      ;; ŝƭȕƒƒ' != 'Plain Hellońőń ȁŝćȉȉ ŝƭȕƒƒ'.
+      #:test-flags
+      #~(list "-k" (string-append
+                    "not 
test_flaky_plugin_handles_non_ascii_byte_string_in_exception"
+                    " and not test_flaky_plugin_identifies_failure"
+                    " and not test_write_then_read"
+                    " and not  test_writelines_then_read"
+                    " and not test_something_flaky"))))
+    (native-inputs
+     (list python-pytest
+           python-setuptools
+           python-wheel))
     (home-page "https://github.com/box/flaky";)
     (synopsis "Automatically rerun flaky tests")
     (description



reply via email to

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