diff options
author | Chih-Hsuan Yen | 2019-08-28 20:46:17 +0800 |
---|---|---|
committer | Chih-Hsuan Yen | 2019-08-28 20:46:17 +0800 |
commit | 9582ce28dec143e64d9cd1c769a21121f4a3671f (patch) | |
tree | 78d7f243e70e4353276679bb52f7c868ca2daec0 | |
parent | 188fa41a9b412498dfb788e0def94736647d2aa3 (diff) | |
download | aur-9582ce28dec143e64d9cd1c769a21121f4a3671f.tar.gz |
Fix check() with pytest 5 and more
* Add contributors from extra/pyalpm
* Add missing makedepends noticed by bartus
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 13 insertions, 4 deletions
@@ -1,15 +1,16 @@ pkgbase = pyalpm-git pkgdesc = Libalpm bindings for Python 3 (Git version) - pkgver = 0.8.4.r23.gacd7fdc + pkgver = 0.8.4.r100.gbca42ad pkgrel = 1 url = https://git.archlinux.org/pyalpm.git/ arch = x86_64 license = GPL3 checkdepends = python-pytest makedepends = git + makedepends = python-setuptools depends = python>=3.6 depends = pacman>=5 - provides = pyalpm=0.8.4.r23.gacd7fdc + provides = pyalpm=0.8.4.r100.gbca42ad conflicts = pyalpm source = git+https://git.archlinux.org/pyalpm.git sha256sums = SKIP @@ -1,16 +1,18 @@ # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org> +# Contributor: bartus +# Contributor: Rémy Oudompheng <remy@archlinux.org> # Contributor: Dave Reisner <d@falconindy.com> _pkgname=pyalpm pkgname=$_pkgname-git -pkgver=0.8.4.r23.gacd7fdc +pkgver=0.8.4.r100.gbca42ad pkgrel=1 pkgdesc="Libalpm bindings for Python 3 (Git version)" arch=('x86_64') url="https://git.archlinux.org/pyalpm.git/" license=('GPL3') depends=('python>=3.6' 'pacman>=5') -makedepends=('git') +makedepends=('git' 'python-setuptools') checkdepends=('python-pytest') provides=("$_pkgname=$pkgver") conflicts=("$_pkgname") @@ -24,6 +26,12 @@ pkgver() { ) } +prepare() { + cd $_pkgname + # https://github.com/archlinux/pyalpm/pull/31 + sed -i 's#str(excinfo)#str(excinfo.value)#' test/*.py +} + build() { cd $_pkgname |