mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 16:21:38 +01:00
50 lines
1.4 KiB
Plaintext
50 lines
1.4 KiB
Plaintext
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Contributor: Eivind Uggedal <eivind@uggedal.com>
|
|
# Maintainer: Steven Guikal <void@fluix.one>
|
|
pkgname=py3-wtforms
|
|
pkgver=3.1.1
|
|
pkgrel=0
|
|
pkgdesc="Flexible forms validation and rendering library"
|
|
url="https://wtforms.readthedocs.io/"
|
|
arch="noarch"
|
|
license="BSD-3-Clause"
|
|
depends="python3 py3-markupsafe"
|
|
makedepends="py3-babel py3-gpep517 py3-hatchling"
|
|
checkdepends="py3-email-validator py3-pytest"
|
|
subpackages="$pkgname-lang $pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/wtforms/wtforms/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/wtforms-$pkgver"
|
|
|
|
replaces="py-wtforms" # Backwards compatibility
|
|
provides="py-wtforms=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
lang() {
|
|
local pythonpath="$(python3 -c \
|
|
"from sysconfig import get_path; print(get_path('platlib'))")"
|
|
|
|
langdir="$pythonpath"/wtforms/locale
|
|
default_lang
|
|
}
|
|
|
|
sha512sums="
|
|
03e2279f70585768ef214e394cc093e23ccd13b4918dc55b970bfb0d114dd8b5d1cb432736e43c8f3aaf53cec6c38499f0bed90335f2d9b400411b93bee55636 py3-wtforms-3.1.1.tar.gz
|
|
"
|