mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=py3-pytest-asyncio
|
|
pkgver=0.21.0
|
|
pkgrel=1
|
|
pkgdesc="Pytest support for asyncio"
|
|
url="https://github.com/pytest-dev/pytest-asyncio"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-pytest"
|
|
makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-installer py3-wheel"
|
|
checkdepends="py3-async_generator py3-coverage py3-hypothesis py3-flaky py3-pytest-trio"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/pytest-dev/pytest-asyncio/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir/pytest-asyncio-$pkgver"
|
|
options="!check" # fail for some reason
|
|
|
|
build() {
|
|
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages test-env
|
|
test-env/bin/python3 -m installer dist/pytest_asyncio-*.whl
|
|
test-env/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/pytest_asyncio-*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
d678d8957e091753684841fff668284d591587d3190db514afd3713b9fe94826b27d1b455b7ac4447a67587203d5caabf8611e199cbb9792e5171072fe55d823 py3-pytest-asyncio-0.21.0.tar.gz
|
|
"
|