mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Maintainer: Luca Weiss <luca@lucaweiss.eu>
|
|
pkgname=py3-httpbin
|
|
pkgver=0.10.2
|
|
pkgrel=3
|
|
pkgdesc="HTTP Request and Response Service"
|
|
url="https://github.com/psf/httpbin"
|
|
arch="noarch"
|
|
license="ISC"
|
|
depends="py3-flask py3-six py3-raven py3-blinker py3-brotli py3-decorator"
|
|
makedepends="py3-setuptools py3-gpep517 py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/h/httpbin/httpbin-$pkgver.tar.gz
|
|
0001-Make-flasgger-dep-optional-26.patch
|
|
brotli.patch
|
|
"
|
|
|
|
builddir="$srcdir/httpbin-$pkgver"
|
|
|
|
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="
|
|
731b842090be516d9eccb1d2bb8303128d2b2e24b1ebf0b2018a2f0b8629b164c7de686e1775841cd57417ec89941d98fc81f878a284c7242bfef4db481a781b httpbin-0.10.2.tar.gz
|
|
cefc6bc81d446c5337a8b1279e666f48f7181944ffec23d8075dfefd09ef8d2d90498c5a50d5ca987ba9f45b510f51f2b981d96e064e2b39bb72203c394b2618 0001-Make-flasgger-dep-optional-26.patch
|
|
6acfbe7ec78ece018fd244c5b322187687cfb495f24e3b781a7db47d0729bdf40d5b11b554747e723977209f245c80381e7d429394d8fc9ee4ad5c08b9abbd17 brotli.patch
|
|
"
|