Date: Tuesday, November 20, 2018 @ 15:24:26 Author: yan12125 Revision: 409172
upgpkg: nvchecker 1.2.7-1 * Add myself as a maintainer * Replace the pytest runner with simply pytest as the latter just works * Improved optdepends Modified: nvchecker/trunk/PKGBUILD ----------+ PKGBUILD | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-11-20 15:15:54 UTC (rev 409171) +++ PKGBUILD 2018-11-20 15:24:26 UTC (rev 409172) @@ -1,23 +1,26 @@ # Maintainer: Felix Yan <[email protected]> +# Maintainer: Chih-Hsuan Yen <[email protected]> pkgname=nvchecker -pkgver=1.1 -pkgrel=2 +pkgver=1.2.7 +pkgrel=1 pkgdesc="New version checker for software" arch=('any') url="https://github.com/lilydjwg/nvchecker" license=('MIT') depends=('python-setuptools' 'python-structlog' 'python-tornado' 'python-pycurl') -checkdepends=('python-pytest-runner' 'python-pytest-xdist' 'python-pytest-asyncio' 'python-flaky') -source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver.tar.gz" - "https://github.com/lilydjwg/nvchecker/commit/6afa9a551aa9d6030accf7f7c46c7184c2193622.patch") -sha512sums=('8680776c22bbb34ad531982027a173744a484a98b9a02fda4068d314bdfadefda29d4542a0dac2981ead26a0040c786c59c9239d5097a8a75aec353ace93b9fd' - '1169a70ec973360ce56e4ab6fdf8092c26e1e0e53ae54c796f400abb66c7884a998b50bc500ee750a173f347569a416bf6d4b192716e857f2f78e2cb6bb14f6d') +checkdepends=('python-pytest' 'python-pytest-xdist' 'python-pytest-asyncio' 'python-flaky') +optdepends=( + 'pyalpm: allow using "sort_version_key = vercmp" in configuration files' +) +source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver.tar.gz") +sha512sums=('33b4c7da7825bd85d6e27ef37cb64ad9c59664fa3d614a4582172a58109cab7552ca6a49f91c29508fcfd8c12559d2fae496180e92d74983fa12ad5721dbf77a') prepare() { cd nvchecker-$pkgver # fix broken test - patch -p1 -i ../6afa9a551aa9d6030accf7f7c46c7184c2193622.patch + # partial backport of https://github.com/lilydjwg/nvchecker/commit/d0ee3592097fdd4c427fbec95ca48d08b5c93007 + sed -i 's|1\.3-8|1.3-9|' tests/test_{archpkg,pacman}.py } build() { @@ -27,7 +30,7 @@ check() { cd nvchecker-$pkgver - python setup.py pytest + pytest } package() {
