1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-15 11:30:44 +02:00

gnu: pantalaimon: Update to 0.10.5-0.257ef6a.

* gnu/packages/matrix.scm (pantalaimon): Update to 0.10.5-0.257ef6a.
[arguments]<#:phases>: Change requirements, skip hanging tests.
[native-inputs]: Add python-pytest-asyncio.
[propagated-inputs]: Replace python-appdirs with python-platformdirs.

Change-Id: Ie2ccb3263f41193e504184157d3a4be301ddacbf
Signed-off-by: Ian Eure <ian@retrospec.tv>
This commit is contained in:
Arjan Adriaanse 2025-01-22 23:54:58 +01:00 committed by Ian Eure
parent dff83a5475
commit fe577ce129
No known key found for this signature in database
GPG key ID: 8499AC88F1A71CF2

View file

@ -6,6 +6,7 @@
;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org> ;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith@outlook.com> ;;; Copyright © 2022 Morgan Smith <Morgan.J.Smith@outlook.com>
;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2025 Arjan Adriaanse <arjan@adriaan.se>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -226,69 +227,73 @@ fledged batteries-included asyncio layer using aiohttp.")
(license license:isc))) (license license:isc)))
(define-public pantalaimon (define-public pantalaimon
(package (let ((commit "257ef6a2e5e5668cd43347037c09ba036f91d997")
(name "pantalaimon") (revision "0"))
(version "0.10.5") (package
(source (name "pantalaimon")
(origin (version (git-version "0.10.5" revision commit))
(method git-fetch) (source
(uri (git-reference (origin
(url "https://github.com/matrix-org/pantalaimon") (method git-fetch)
(commit version))) (uri (git-reference
(file-name (git-file-name name version)) (url "https://github.com/matrix-org/pantalaimon")
(sha256 (commit commit)))
(base32 (file-name (git-file-name name version))
"16ask8v00654q307c55q5gnm8hrj40gibpab5zl52v4i0bgl9j68")))) (sha256
(build-system python-build-system) (base32 "1i18mjlc143d2xwlha09i5ny06vipmy8fii05427zq5vjz8rysgx"))))
(arguments (build-system python-build-system)
(list (arguments
#:phases (list
#~(modify-phases %standard-phases #:phases
(add-after 'unpack 'downgrade-appdirs-requirement #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'relax-requirements
(substitute* "setup.py" (lambda _
;; FIXME: Remove this once appdirs is updated. (substitute* "setup.py"
;; Upgrading python-appdirs requires rebuilting 3000+ packages, ;; Newer version is packaged.
;; when 1.4.4 is a simple maintenance fix from 1.4.3. (("\"matrix-nio\\[e2e\\] >= 0\\.24, < 0\\.25\\.2\"")
(("appdirs >= 1.4.4") "appdirs >= 1.4.3")))) "\"matrix-nio[e2e] >= 0.24, <= 0.25.2\""))))
(add-after 'install 'install-doc (add-after 'install 'install-doc
(lambda _ (lambda _
(with-directory-excursion "docs/man" (with-directory-excursion "docs/man"
(let ((man (string-append #$output "/share/man"))) (let ((man (string-append #$output "/share/man")))
(install-file "panctl.1" (string-append man "/man1")) (install-file "panctl.1" (string-append man "/man1"))
(install-file "pantalaimon.5" (string-append man "/man5")) (install-file "pantalaimon.5" (string-append man "/man5"))
(install-file "pantalaimon.8" (string-append man "/man8")))))) (install-file "pantalaimon.8" (string-append man "/man8"))))))
(replace 'check (replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys) (lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests? (when tests?
(add-installed-pythonpath inputs outputs) (add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv" "tests"))))))) (invoke "pytest" "-vv" "tests"
(native-inputs ;; These tests hang.
(list python-aioresponses "--ignore=tests/proxy_test.py"
python-faker "-k" "not test_start_loop")))))))
python-pytest (native-inputs
python-pytest-aiohttp)) (list python-aioresponses
(propagated-inputs python-faker
(list python-aiohttp python-pytest
python-appdirs python-pytest-aiohttp
python-attrs python-pytest-asyncio))
python-cachetools (propagated-inputs
python-click (list python-aiohttp
python-dbus python-attrs
python-janus python-cachetools
python-keyring python-click
python-logbook python-dbus
python-matrix-nio python-janus
python-notify2 python-keyring
python-peewee python-logbook
python-prompt-toolkit python-matrix-nio
python-pydbus python-notify2
python-pygobject)) python-peewee
(home-page "https://github.com/matrix-org/pantalaimon") python-platformdirs
(synopsis "Matrix proxy daemon that adds E2E encryption capabilities") python-prompt-toolkit
(description python-pydbus
"Pantalaimon is an end-to-end encryption aware Matrix reverse proxy python-pygobject))
(home-page "https://github.com/matrix-org/pantalaimon")
(synopsis "Matrix proxy daemon that adds E2E encryption capabilities")
(description
"Pantalaimon is an end-to-end encryption aware Matrix reverse proxy
daemon. Pantalaimon acts as a good man in the middle that handles the daemon. Pantalaimon acts as a good man in the middle that handles the
encryption for you. Messages are transparently encrypted and decrypted for encryption for you. Messages are transparently encrypted and decrypted for
clients inside of pantalaimon.") clients inside of pantalaimon.")
(license license:asl2.0))) (license license:asl2.0))))