36 lines
1.1 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python-pytest-asyncio
pkgver=0.18.1
pkgrel=1
pkgdesc="Pytest support for asyncio."
arch=(any)
license=('Apache')
url="https://github.com/pytest-dev/pytest-asyncio/"
depends=('python-pytest')
makedepends=('python-setuptools-scm')
checkdepends=('python-flaky' 'python-hypothesis')
source=("https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('94514bd064c703ab056e2bd0009c2c1c9590f07daccc7bf3d58a4b88e6af102a9d1b0ccbe3bc2be36def706ffe2c8082c5f470dd12bedff2c2afe801dfacbc53')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd pytest-asyncio-$pkgver
python setup.py build
}
check() {
# Hack entry points by installing it
cd pytest-asyncio-$pkgver
python setup.py install --root="$PWD/tmp_install" --optimize=1
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH:$PWD/tests" py.test
}
package() {
cd pytest-asyncio-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}