mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-09 23:14:11 +02:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
|
# Maintainer: Celeste <cielesti@protonmail.com>
|
|
maintainer="Celeste <cielesti@protonmail.com>"
|
|
pkgname=py3-aioresponses
|
|
pkgver=0.7.8
|
|
pkgrel=0
|
|
pkgdesc="Helper to mock/fake web requests in the aiohttp package"
|
|
url="https://github.com/pnuckowski/aioresponses"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="py3-packaging"
|
|
makedepends="py3-gpep517 py3-pbr py3-setuptools py3-wheel"
|
|
checkdepends="py3-aiohttp py3-ddt py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="aioresponses-$pkgver.tar.gz::https://github.com/pnuckowski/aioresponses/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/aioresponses-$pkgver"
|
|
|
|
build() {
|
|
export PBR_VERSION=$pkgver
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
cb2175ef098caeaafa32992fd8ec7f26c07baf36442620ebf25cc244d30d1b6151519b65480f1fb1daaa2507b89029c5a050c73665a60f8781b9b1fd4a601a4e aioresponses-0.7.8.tar.gz
|
|
"
|