mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-14 12:21:47 +01:00
46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=py3-python-multipart
|
|
pkgver=0.0.12
|
|
pkgrel=0
|
|
pkgdesc="A streaming multipart parser for Python"
|
|
url="https://github.com/andrew-d/python-multipart"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-hatchling
|
|
"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
checkdepends="
|
|
py3-pytest-runner
|
|
py3-pytest-xdist
|
|
py3-yaml
|
|
"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/andrew-d/python-multipart/archive/$pkgver.tar.gz"
|
|
builddir="$srcdir/python-multipart-$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
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest -n auto
|
|
}
|
|
|
|
package() {
|
|
python -m installer -d "$pkgdir" \
|
|
.dist/python_multipart-*.whl
|
|
|
|
install -vDm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|
|
|
|
sha512sums="
|
|
271ed29f3025be5c058a56ec56ce373348dc27b4c8130c17609bd48d73fc975b2ac8387d4989be578e1be01a618aad87c1d3ec3a37dbe73dc45813ec961842d0 py3-python-multipart-0.0.12.tar.gz
|
|
"
|