[arch-commits] Commit in python-matrix-nio/repos (2 files)

Jonas Witschel diabonas at archlinux.org
Sun Mar 29 23:18:23 UTC 2020


    Date: Sunday, March 29, 2020 @ 23:18:22
  Author: diabonas
Revision: 606641

archrelease: copy trunk to community-any

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

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

Copied: python-matrix-nio/repos/community-any/PKGBUILD (from rev 606640, python-matrix-nio/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-03-29 23:18:22 UTC (rev 606641)
@@ -0,0 +1,39 @@
+# Maintainer: Jonas Witschel <diabonas at archlinux.org>
+pkgname=python-matrix-nio
+pkgver=0.10.0
+_tag=55b4a01732def2865576335ab8ec867ac26c81e4 # git show-ref "$pkgver"
+pkgrel=1
+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-aiofiles' 'python-aiohttp' 'python-atomicwrites' 'python-attrs' 'python-cachetools'
+         'python-future' 'python-h11' 'python-h2' 'python-jsonschema' 'python-logbook' 'python-olm'
+         'python-peewee' 'python-pycryptodome' 'python-unpaddedbase64')
+makedepends=('git')
+checkdepends=('python-aioresponses' 'python-faker' '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 setup.py build
+}
+
+check() {
+	cd "${pkgname#python-}"
+	python -m pytest
+}
+
+package() {
+	cd "${pkgname#python-}"
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list