mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-17 18:36:42 +02:00
42 lines
1.3 KiB
Text
42 lines
1.3 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-flask-cdn
|
|
_pkgname=Flask-CDN
|
|
pkgver=1.5.3
|
|
pkgrel=8
|
|
pkgdesc="Flask CDN static files extension"
|
|
url="https://pypi.org/project/Flask-CDN"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-flask"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
|
|
assertEquals.patch
|
|
"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
replaces="py-flask-cdn" # Backwards compatibility
|
|
provides="py-flask-cdn=$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
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m unittest discover
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
dbec6798506876ea098f11236f960c7b557a0174a38330845e7fe8312cd359b104c025aabfc2b8d1d22a095106c9f7c1af6b4cd55a83039b94ed177f1045e3e4 Flask-CDN-1.5.3.tar.gz
|
|
8afbf6584f0fd64f0c242d112d3e6c97496278c33c5bd70fe722983032957cf5471783a54fea2fedb7674aaf1f843d4e7eb9ca5aff95b90c3122950826e23172 assertEquals.patch
|
|
"
|