GNU bug report logs - #75960
[PATCH] gnu: pantalaimon: Update to 257ef6a2e5e5668cd43347037c09ba036f91d997.

Previous Next

Package: guix-patches;

Reported by: Ian Eure <ian <at> retrospec.tv>

Date: Fri, 31 Jan 2025 04:32:02 UTC

Severity: normal

Tags: patch

Done: Ian Eure <ian <at> retrospec.tv>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75960 in the body.
You can then email your comments to 75960 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#75960; Package guix-patches. (Fri, 31 Jan 2025 04:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ian Eure <ian <at> retrospec.tv>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 31 Jan 2025 04:32:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ian Eure <ian <at> retrospec.tv>
To: guix-patches <at> gnu.org
Cc: Ian Eure <ian <at> retrospec.tv>
Subject: [PATCH] gnu: pantalaimon: Update to
 257ef6a2e5e5668cd43347037c09ba036f91d997.
Date: Thu, 30 Jan 2025 20:30:59 -0800
This package has been broken for a while, in a way that’s very annoying to
debug: the test suite hangs forever and the build times out.  It’s been asked
after in IRC, but no progress has been made.  I spent a solid two hours
fumbling around with it, and wasn’t able to get anywhere.  This package isn’t
using the same test setup as upstream, and can’t, because upstream is using
tox, which requires the network to do anything.

I can get the test suite to run by hand, but it doesn’t succeed.  I figure if
it’s not going to work by hand with network access, it’s very unlikely to work
in an isolated build environment.  A buildable package without tests seems
better to me than an unbuildable package with them; and this has been asked
after in IRC, so, this disables them.  It also removes the native-inputs they
needed, and the custom 'check phase.

Also, there’s been no release for three years; update to the current HEAD.
With this update, the appdirs hack isn’t needed, so that’s removed.  HEAD
also, for some reason, forbids matrix-nio 0.25.2 (the latest release), even
though this was changed in a routine dependency bump[1] which landed weeks
after 0.25.2 was released.  Allow that version.

* gnu/packages/matrix.scm (pantalaimon): Update to 257ef6a2e5e5668cd43347037c09ba036f91d997.

[1]: https://github.com/matrix-org/pantalaimon/pull/178

Change-Id: Idd2e940b5a36c72e116ad5e27a50c17eec6423e0
---
 gnu/packages/matrix.scm | 31 +++++++++++++------------------
 1 file changed, 13 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/matrix.scm b/gnu/packages/matrix.scm
index 8d1aca4b2e..032e2b44b0 100644
--- a/gnu/packages/matrix.scm
+++ b/gnu/packages/matrix.scm
@@ -228,7 +228,7 @@ (define-public python-matrix-nio
 (define-public pantalaimon
   (package
     (name "pantalaimon")
-    (version "0.10.5")
+    (version "257ef6a2e5e5668cd43347037c09ba036f91d997")
     (source
      (origin
        (method git-fetch)
@@ -238,36 +238,30 @@ (define-public pantalaimon
        (file-name (git-file-name name version))
        (sha256
         (base32
-         "16ask8v00654q307c55q5gnm8hrj40gibpab5zl52v4i0bgl9j68"))))
+         "1i18mjlc143d2xwlha09i5ny06vipmy8fii05427zq5vjz8rysgx"))))
     (build-system python-build-system)
     (arguments
      (list
+      ;; Upstream uses tox for tests, which requires the network.  Disable
+      ;; them until someone can figure out how to make them work right.
+      #:tests? #f
       #:phases
       #~(modify-phases %standard-phases
-          (add-after 'unpack 'downgrade-appdirs-requirement
+          (add-after 'unpack 'relax-matrix-nio
             (lambda _
               (substitute* "setup.py"
-                ;; FIXME: Remove this once appdirs is updated.
-                ;; Upgrading python-appdirs requires rebuilting 3000+ packages,
-                ;; when 1.4.4 is a simple maintenance fix from 1.4.3.
-                (("appdirs >= 1.4.4") "appdirs >= 1.4.3"))))
+                ;; Relax matrix-nio dep, pantalaimon forbids the latest
+                ;; version for some reason.
+                (("matrix-nio\\[e2e\\] >= 0.24, < 0.25.2")
+                 "matrix-nio[e2e] >= 0.24, <= 0.25.2"))))
           (add-after 'install 'install-doc
             (lambda _
               (with-directory-excursion "docs/man"
                 (let ((man (string-append #$output "/share/man")))
                   (install-file "panctl.1" (string-append man "/man1"))
                   (install-file "pantalaimon.5" (string-append man "/man5"))
-                  (install-file "pantalaimon.8" (string-append man "/man8"))))))
-          (replace 'check
-            (lambda* (#:key tests? inputs outputs #:allow-other-keys)
-              (when tests?
-                (add-installed-pythonpath inputs outputs)
-                (invoke "pytest" "-vv" "tests")))))))
-    (native-inputs
-     (list python-aioresponses
-           python-faker
-           python-pytest
-           python-pytest-aiohttp))
+                  (install-file "pantalaimon.8" (string-append man "/man8")))))))))
+
     (propagated-inputs
      (list python-aiohttp
            python-appdirs
@@ -281,6 +275,7 @@ (define-public pantalaimon
            python-matrix-nio
            python-notify2
            python-peewee
+           python-platformdirs
            python-prompt-toolkit
            python-pydbus
            python-pygobject))
-- 
2.48.1





bug closed, send any further explanations to 75960 <at> debbugs.gnu.org and Ian Eure <ian <at> retrospec.tv> Request was from Ian Eure <ian <at> retrospec.tv> to control <at> debbugs.gnu.org. (Sat, 01 Feb 2025 17:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 02 Mar 2025 12:24:23 GMT) Full text and rfc822 format available.

This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.