1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-06 21:20:33 +02:00

gnu: Remove weechat-matrix.

* gnu/packages/messaging.scm (weechat-matrix): Delete variable.

Fixes: guix/guix#1572
Change-Id: Icb3c4573c041a63ab3b9e457f80a286945d43d72
This commit is contained in:
Andreas Enge
2025-08-26 10:27:08 +02:00
parent 9b8bb290e4
commit 20013bab9c

View File

@@ -3539,71 +3539,6 @@ a persistent connection to an IRC server, acting as a proxy and buffer for
a number of clients.")
(license license:gpl3+)))
(define-public weechat-matrix
(package
(name "weechat-matrix")
(version "0.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/poljar/weechat-matrix")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32
"1iv55n4k05139f7jzkhczgw4qp6qwilrvfsy3c6v2m1kxffj12d3"))))
(build-system python-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(delete 'build)
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((weechat-python (string-append (assoc-ref outputs "out")
"/share/weechat/python")))
;; Avoid circular import by renaming the matrix module to
;; weechat_matrix.
(substitute* (cons "main.py"
(append (find-files "matrix")
(find-files "tests")))
(("from matrix") "from weechat_matrix")
(("import matrix") "import weechat_matrix"))
;; Install python modules.
(invoke "make" "install-lib"
(string-append "INSTALLDIR="
(site-packages inputs outputs)
"/weechat_matrix"))
;; Extend PYTHONPATH to find installed python modules.
(add-installed-pythonpath inputs outputs)
;; Augment sys.path so that dependencies are found.
(substitute* "main.py"
(("import os\n" all)
(apply string-append
all
"import sys\n"
(map (lambda (path)
(string-append "sys.path.append('" path "')\n"))
(string-split (getenv "GUIX_PYTHONPATH") #\:)))))
;; Install script.
(mkdir-p weechat-python)
(copy-file "main.py"
(string-append weechat-python "/matrix.py")))))
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest")))))))
(inputs
(list python-matrix-nio python-pygments python-pyopenssl
python-webcolors))
(native-inputs
(list python-pytest))
(home-page "https://github.com/poljar/weechat-matrix")
(synopsis "Weechat Matrix protocol script")
(description "@code{weechat-matrix} is a Python plugin for Weechat that lets
Weechat communicate over the Matrix protocol.")
(license license:isc)))
(define-public weechat-wee-slack
(package
(name "weechat-wee-slack")