mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-aiohttp-debugtoolbar
|
|
_pkgname=aiohttp-debugtoolbar
|
|
pkgver=0.6.1
|
|
pkgrel=2
|
|
pkgdesc="A library for debugtoolbar support for aiohttp"
|
|
url="https://github.com/aio-libs/aiohttp-debugtoolbar"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="py3-aiohttp py3-aiohttp-jinja2 python3"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-aiohttp
|
|
py3-pytest-asyncio
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/aio-libs/aiohttp-debugtoolbar/archive/v$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
options="!check" # deprecation warnings
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
0c46fbe35f8d7d49130ca6f7e2378fc486a821fd08b99c71c37dbc70d83b0c891cedaa7a6022726a74e02be398b669f8b50896d0a868b0915a4384648d03e8eb py3-aiohttp-debugtoolbar-0.6.1.tar.gz
|
|
"
|