[arch-commits] Commit in weechat-matrix/trunk (PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Mon Apr 4 22:35:20 UTC 2022


    Date: Monday, April 4, 2022 @ 22:35:20
  Author: diabonas
Revision: 1181413

upgpkg: weechat-matrix 0.3.0-7: remove dependency version pinning

Upstream pins the dependency versions to the minor version that was used during
development. Since the Arch repositories contain some newer versions, importing
the module can fail. Try e.g.

from pkg_resources import require
require("matrix")

This fails with

pkg_resources.ContextualVersionConflict: (matrix-nio 0.19.0 (/usr/lib/python3.10/site-packages), Requirement.parse('matrix-nio[e2e]<0.19.0,>=0.18.0'), {'matrix'})

The package works fine with the latest versions available in the repositories
(that is what we run the test suite for after all), so remove the dependency
version pinning altogether.

Modified:
  weechat-matrix/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 22:30:17 UTC (rev 1181412)
+++ PKGBUILD	2022-04-04 22:35:20 UTC (rev 1181413)
@@ -2,7 +2,7 @@
 pkgname=weechat-matrix
 pkgver=0.3.0
 _tag=ebf792a233a50d639b13e5f7c9a1c1fe988e7476 # git rev-parse "$pkgver"
-pkgrel=6
+pkgrel=7
 pkgdesc='WeeChat Matrix protocol script written in Python'
 arch=('any')
 url='https://github.com/poljar/weechat-matrix'
@@ -31,6 +31,9 @@
 	cd "$pkgname"
 	sed -ri 's|#!/usr/bin/env( -S)? python3|#!/usr/bin/python3|' contrib/*.py
 
+	# Remove unnecessary dependency version pinning
+	sed -i 's/= "^[0-9.]*"/= "*"/' pyproject.toml
+
 	# SSLContext.set_npn_protocols broken in Python 3.10
 	# (https://github.com/poljar/weechat-matrix/issues/308)
 	patch --forward --strip=1 --input="$srcdir/weechat-matrix-0.3.0_remove-set_npn_protocols.patch"



More information about the arch-commits mailing list