33 lines
1.1 KiB
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=python-pytest-asyncio
pkgver=0.24.0
pkgrel=2
pkgdesc="Pytest support for asyncio."
arch=(any)
url="https://github.com/pytest-dev/pytest-asyncio"
license=('Apache-2.0')
depends=('python' 'python-pluggy' 'python-pytest')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
checkdepends=('python-hypothesis')
source=("git+https://github.com/pytest-dev/pytest-asyncio.git#tag=v$pkgver?signed")
b2sums=('23eff3ed41940671d4df7e98430d9d77485a55555c15749a199851addb35e770440a4fb79e305ed827e1e07387979dce487fac90d6a997ae892d246b6feb48ac')
validpgpkeys=('856F4E797CAB2AA5A0A967E1F0827C47163A10D6') # Michael Seifert <m.seifert@digitalernachschub.de>
build() {
cd pytest-asyncio
python -m build -wn
}
check() {
cd pytest-asyncio
PYTHONPATH="$PWD:$PYTHONPATH" pytest
}
package() {
cd pytest-asyncio
python -m installer --destdir="$pkgdir" dist/*.whl
}