unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Arjan Adriaanse <arjan@adriaan.se>
To: 75420@debbugs.gnu.org
Cc: Arjan Adriaanse <arjan@adriaan.se>
Subject: [bug#75420] [PATCH python-team 09/11] gnu: python-matrix-nio: Update to 0.25.1.
Date: Tue,  7 Jan 2025 15:09:20 +0100	[thread overview]
Message-ID: <0cfeb199ba76af745e041d32d8c0d3ab12f13a8d.1736256868.git.arjan@adriaan.se> (raw)
In-Reply-To: <cover.1736256868.git.arjan@adriaan.se>

* gnu/packages/matrix.scm (python-matrix-nio): Update to 0.25.1.

Change-Id: I959818595a17a6bbc423d0c083feea039698fed7
---
 gnu/packages/matrix.scm | 65 ++++++++++++-----------------------------
 1 file changed, 19 insertions(+), 46 deletions(-)

diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index 32ae62fcb4..a65e3b0143 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
 ;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith@outlook.com>
+;;; Copyright © 2025 Arjan Adriaanse <arjan@adriaan.se>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -160,78 +161,50 @@ (define-public synapse
 (define-public python-matrix-nio
   (package
     (name "python-matrix-nio")
-    (version "0.20.2")
+    (version "0.25.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "matrix_nio" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/matrix-nio/matrix-nio")
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "110wg1grhqqgwvlgr98r2k8wxcggpj7lbdwmgkgmi2l7qj1vw3dm"))))
+        (base32 "0fmy2qaa7cpp6qk4ilwik2jrszk36c86l5haxvwgyp009pz4rz3i"))))
     (build-system pyproject-build-system)
     (arguments
      `(#:phases
        (modify-phases %standard-phases
-         (add-after 'unpack 'relax-requirements
-           (lambda _
-             (substitute* "pyproject.toml"
-               ;; Remove upper bounds of cachetool pin.
-               (("cachetools (.*version = )\"\\^4" _ match)
-                (string-append "cachetools " match
-                               "\">=4")))))
-         (add-before 'check 'install-tests
-           (lambda* (#:key inputs outputs #:allow-other-keys)
-             (copy-recursively (string-append
-                                (assoc-ref inputs "tests") "/tests")
-                               "tests")
-             #t))
          (replace 'check
            (lambda* (#:key tests? inputs outputs #:allow-other-keys)
              (when tests?
                (add-installed-pythonpath inputs outputs)
-               ;; FIXME: two tests fail, for unknown reasons
                (invoke "python" "-m" "pytest" "-vv" "tests" "-k"
-                       (string-append
-                        "not test_upload_binary_file_object "
-                        "and not test_connect_wrapper"))))))))
+                       ;; This test requires networking.
+                       "not test_connect_wrapper")))))))
     (native-inputs
-     `(("python-pytest" ,python-pytest)
-       ("python-poetry-core" ,python-poetry-core)
-       ("python-hypothesis" ,python-hypothesis)
-       ("python-faker" ,python-faker)
-       ("python-pytest-aiohttp" ,python-pytest-aiohttp)
-       ("python-pytest-asyncio" ,python-pytest-asyncio)
-       ("python-aioresponses" ,python-aioresponses)
-       ("python-pytest-benchmark" ,python-pytest-benchmark)
-       ("tests"
-        ;; The release on pypi comes without tests.  We can't build from this
-        ;; checkout, though, because installation requires an invocation of
-        ;; poetry.
-        ,(origin
-           (method git-fetch)
-           (uri (git-reference
-                 (url "https://github.com/poljar/matrix-nio.git")
-                 (commit version)))
-           (file-name (git-file-name name version))
-           (sha256
-            (base32
-             "1rd90sk5yygxzvcs4qhzr80bch7d3xszyfjf99pn10xsj10mi752"))))))
+     (list python-aioresponses
+           python-faker
+           python-hypothesis
+           python-pytest
+           python-pytest-aiohttp
+           python-pytest-asyncio
+           python-pytest-benchmark
+           python-wheel))
     (propagated-inputs
      (list python-aiofiles
            python-aiohttp
            python-aiohttp-socks
            python-atomicwrites
            python-cachetools
-           python-dataclasses
-           python-future
            python-h11
            python-h2
            python-jsonschema
-           python-logbook
            python-olm
            python-peewee
            python-pycryptodome
            python-unpaddedbase64))
-    (home-page "https://github.com/poljar/matrix-nio")
+    (home-page "https://github.com/matrix-nio/matrix-nio")
     (synopsis
      "Python Matrix client library, designed according to sans I/O principles")
     (description
-- 
2.46.0





  parent reply	other threads:[~2025-01-07 14:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07 13:56 [bug#75420] [PATCH python-team 00/11] Fix python-matrix-nio and pantalaimon builds Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 01/11] gnu: Add python-expandvars Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 02/11] gnu: python-yarl: Update to 1.12.1 Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 03/11] gnu: Add python-pytest-codspeed Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 04/11] gnu: Add python-aiohappyeyeballs Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 05/11] gnu: python-aiohttp: Update to 3.10.11 Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 06/11] gnu: python-pytest-aiohttp: Update to 1.0.5 Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 07/11] gnu: python-socks: Update to 2.4.4 Arjan Adriaanse
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 08/11] gnu: python-aiohttp-socks: Update to 0.8.4 Arjan Adriaanse
2025-01-07 14:09 ` Arjan Adriaanse [this message]
2025-01-07 14:09 ` [bug#75420] [PATCH python-team 10/11] gnu: python-platformdirs: Update to 4.3.6 Arjan Adriaanse
2025-01-07 14:15 ` [bug#75420] [PATCH python-team 11/11] gnu: pantalaimon: Update to 0.10.5-0.257ef6a Arjan Adriaanse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0cfeb199ba76af745e041d32d8c0d3ab12f13a8d.1736256868.git.arjan@adriaan.se \
    --to=arjan@adriaan.se \
    --cc=75420@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).