author | Chih-Hsuan Yen
<yan12125@archlinux.org> 2020-07-03 13:05:22 UTC |
committer | Chih-Hsuan Yen
<yan12125@archlinux.org> 2020-07-03 13:05:22 UTC |
parent | 1026b0f518faba6238ed300798c76db78b217053 |
PKGBUILD | +7 | -16 |
pytest-asyncio-0.14.diff | +0 | -13 |
diff --git a/PKGBUILD b/PKGBUILD index 1ffa73f..da1953a 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,10 +2,8 @@ # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org> pkgname=nvchecker -pkgver=1.6.post1 -# The commit bumps version in setup.py, and it's not tagged -_commit=bc2fcd148d460ec9c0f0c12bc77e0326adad5546 -pkgrel=2 +pkgver=1.7 +pkgrel=1 pkgdesc="New version checker for software releases" arch=('any') url="https://github.com/lilydjwg/nvchecker" @@ -19,28 +17,21 @@ optdepends=( 'mercurial: for VCS sources' 'subversion: for VCS sources' ) -source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/$_commit.tar.gz" - "pytest-asyncio-0.14.diff") -sha512sums=('476ec6bf8ef20255b685720fa501c0c672a0d6a32d0cd5bb1e6458a00236201dad8ff2a9d0d2a64365aebb4d3d2dc089a7cfc2bd84923f6ec9ecb7114322327c' - '442176e351ba1c3937fc98e2a97b8ceab59f340d438d9d59aa2c156b299061b945f2a6a5f07b125138d347ff1cc1db4623ee7043469eaf25634628aa0cb02320') - -prepare() { - cd nvchecker-$_commit - patch -Np1 -i ../pytest-asyncio-0.14.diff -} +source=("$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('6243960747de33bd004bb3377109699f702bb64d65320e0c219f540546f33ace2d87be4eb2b18d988874eb98812176488fa5c98aec6f93cd218b8549b38482d0') build() { - cd nvchecker-$_commit + cd nvchecker-$pkgver python setup.py build } check() { - cd nvchecker-$_commit + cd nvchecker-$pkgver pytest } package() { - cd nvchecker-$_commit + cd nvchecker-$pkgver # use PYTHONHASHSEED=0 work around https://bugs.python.org/issue34722 PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname diff --git a/pytest-asyncio-0.14.diff b/pytest-asyncio-0.14.diff deleted file mode 100644 index 5920211..0000000 --- a/pytest-asyncio-0.14.diff +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/tests/conftest.py b/tests/conftest.py -index bddf44a..daae169 100644 ---- a/tests/conftest.py -+++ b/tests/conftest.py -@@ -54,7 +54,7 @@ async def get_version(): - - return __call__ - --@pytest.fixture(scope="module") -+@pytest.fixture(scope="session") - def event_loop(request): - """Override pytest-asyncio's event_loop fixture, - Don't create an instance of the default event loop for each test case.