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

commit 2a4f1df598dc084d3d53526600a48828686618f4
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Sep 24 23:14:15 2025 +0200

    gnu: python-matrix-nio: Disable failing tests.
    
    * gnu/packages/matrix.scm (python-matrix-nio)
    [arguments]<#:test-flags>: Disable failing tests.
    <#:phases>: Improve style ; add phase 'relax-requirements.
    [native-inputs]: Remove python-mypy, python-mypy-extensions,
    python-poetry-core, python-pytest-cov, python-pytest-flake8,
    python-wheel.
    
    Change-Id: I45ddc6ca02333eb5384f310cfd6cdb9091626334
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/matrix.scm | 38 +++++++++++++++++++++-----------------
 1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index b6b35b0fa1..adf1791a8a 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -253,21 +253,31 @@ homeserver and generally help bootstrap the ecosystem.")
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32
-         "07prfdnkr13d0pvzhnicwnpn562fwq9zx05d6wza230s7vj0mmk4"))))
+        (base32 "07prfdnkr13d0pvzhnicwnpn562fwq9zx05d6wza230s7vj0mmk4"))))
     (build-system pyproject-build-system)
     (arguments
      (list
       #:test-flags
-      ;; This test requires an Internet connection
-      '(list "tests" "-k" "not test_connect_wrapper")
+      #~(list "tests"
+              "-k" (string-join
+                    ;; This test requires an Internet connection
+                    (list "not test_connect_wrapper"
+                          ;; XXX: fixture 'event_loop' not found
+                          "test_sync_forever"
+                          "test_stop_sync_forever")
+                    " and not "))
       #:phases
-      '(modify-phases %standard-phases
-         (add-after 'unpack 'fix-tests
-           (lambda _
-             (substitute* "tests/helpers.py"
-               (("from nio.crypto import OlmAccount, OlmDevice")
-                "from nio.crypto.device import OlmDevice
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'relax-requirements
+            (lambda _
+              (substitute* "pyproject.toml"
+                (("\"cachetools~=.*\"")
+                 "\"cachetools\""))))
+          (add-after 'unpack 'fix-tests
+            (lambda _
+              (substitute* "tests/helpers.py"
+                (("from nio.crypto import OlmAccount, OlmDevice")
+                 "from nio.crypto.device import OlmDevice
 from nio.crypto.sessions import OlmAccount")))))))
     (native-inputs
      (list python-aioresponses
@@ -275,17 +285,11 @@ from nio.crypto.sessions import OlmAccount")))))))
            python-hpack
            python-hyperframe
            python-hypothesis
-           python-mypy
-           python-mypy-extensions
-           python-poetry-core
            python-pytest
            python-pytest-aiohttp
            python-pytest-asyncio
            python-pytest-benchmark
-           python-pytest-cov
-           python-pytest-flake8
-           python-setuptools
-           python-wheel))
+           python-setuptools))
     (propagated-inputs
      (list python-aiofiles
            python-aiohttp

Reply via email to