[arch-commits] Commit in python-matrix-nio/repos/community-any (PKGBUILD PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Mon Apr 4 22:30:18 UTC 2022


    Date: Monday, April 4, 2022 @ 22:30:17
  Author: diabonas
Revision: 1181412

archrelease: copy trunk to community-any

Added:
  python-matrix-nio/repos/community-any/PKGBUILD
    (from rev 1181411, python-matrix-nio/trunk/PKGBUILD)
Deleted:
  python-matrix-nio/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   84 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 45 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-04 22:30:02 UTC (rev 1181411)
+++ PKGBUILD	2022-04-04 22:30:17 UTC (rev 1181412)
@@ -1,39 +0,0 @@
-# Maintainer: Jonas Witschel <diabonas at archlinux.org>
-pkgname=python-matrix-nio
-pkgver=0.19.0
-_tag=52109a160765f1a9e7f78be1aed8a282a83515f1 # git rev-parse "$pkgver"
-pkgrel=2
-pkgdesc='Python Matrix client library, designed according to sans I/O principles'
-arch=('any')
-url='https://github.com/poljar/matrix-nio'
-license=('ISC')
-depends=('python' 'python-aiofiles' 'python-aiohttp' 'python-aiohttp-socks' 'python-atomicwrites' 
-         'python-cachetools' 'python-future' 'python-h11' 'python-h2' 'python-jsonschema' 'python-logbook' 
-         'python-olm' 'python-peewee' 'python-pycryptodome' 'python-unpaddedbase64')
-makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
-checkdepends=('python-aioresponses' 'python-faker' 'python-hpack' 'python-hyperframe' 'python-hypothesis'
-              'python-pytest' 'python-pytest-aiohttp' 'python-pytest-benchmark')
-source=("git+$url.git?signed#tag=$_tag")
-sha512sums=('SKIP')
-validpgpkeys=('689A3B5BC6560AB4C99A2A0581314DA807EF4E22') # Damir Jelić (poljar) <poljar at termina.org.uk>
-
-pkgver() {
-	cd "${pkgname#python-}"
-	git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
-}
-
-build() {
-	cd "${pkgname#python-}"
-	python -m build --wheel --no-isolation
-}
-
-check() {
-	cd "${pkgname#python-}"
-	python -m pytest
-}
-
-package() {
-	cd "${pkgname#python-}"
-	python -m installer --destdir="$pkgdir" dist/*.whl
-	install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-matrix-nio/repos/community-any/PKGBUILD (from rev 1181411, python-matrix-nio/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-04 22:30:17 UTC (rev 1181412)
@@ -0,0 +1,45 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-matrix-nio
+pkgver=0.19.0
+_tag=52109a160765f1a9e7f78be1aed8a282a83515f1 # git rev-parse "$pkgver"
+pkgrel=3
+pkgdesc='Python Matrix client library, designed according to sans I/O principles'
+arch=('any')
+url='https://github.com/poljar/matrix-nio'
+license=('ISC')
+depends=('python' 'python-aiofiles' 'python-aiohttp' 'python-aiohttp-socks' 'python-atomicwrites' 
+         'python-cachetools' 'python-future' 'python-h11' 'python-h2' 'python-jsonschema' 'python-logbook' 
+         'python-olm' 'python-peewee' 'python-pycryptodome' 'python-unpaddedbase64')
+makedepends=('git' 'python-build' 'python-installer' 'python-poetry-core')
+checkdepends=('python-aioresponses' 'python-faker' 'python-hpack' 'python-hyperframe' 'python-hypothesis'
+              'python-pytest' 'python-pytest-aiohttp' 'python-pytest-benchmark')
+source=("git+$url.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+validpgpkeys=('689A3B5BC6560AB4C99A2A0581314DA807EF4E22') # Damir Jelić (poljar) <poljar at termina.org.uk>
+
+pkgver() {
+	cd "${pkgname#python-}"
+	git describe | sed 's/\([^-]*-\)g/r\1/;s/-/./g'
+}
+
+prepare() {
+	cd "${pkgname#python-}"
+	# Remove unnecessary dependency version pinning
+	sed -i 's/= "^[0-9.]*"/= "*"/' pyproject.toml
+}
+
+build() {
+	cd "${pkgname#python-}"
+	python -m build --wheel --no-isolation
+}
+
+check() {
+	cd "${pkgname#python-}"
+	python -m pytest
+}
+
+package() {
+	cd "${pkgname#python-}"
+	python -m installer --destdir="$pkgdir" dist/*.whl
+	install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list