backports/py3-flask-principal: rebuild #450

Merged
ayakael merged 1 commit from py3-flask-principal/rebuild into edge 2024-04-15 20:54:59 +00:00

View file

@ -3,31 +3,36 @@
pkgname=py3-flask-principal pkgname=py3-flask-principal
_pkgname=flask-principal _pkgname=flask-principal
pkgver=0.4.0 pkgver=0.4.0
pkgrel=6 pkgrel=7
pkgdesc="Flask Identity management" pkgdesc="Flask Identity management"
url="https://pythonhosted.org/Flask-Principal/" url="https://pythonhosted.org/Flask-Principal/"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="python3 py3-blinker py3-flask" depends="python3 py3-blinker py3-flask"
makedepends="py3-setuptools" makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-nose" checkdepends="py3-nose"
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/mattupstate/flask-principal/archive/$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/mattupstate/flask-principal/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-flask-principal" # Backwards compatibility replaces="py-flask-principal" # Backwards compatibility
provides="py-flask-principal=$pkgver-r$pkgrel" # Backwards compatibility provides="py-flask-principal=$pkgver-r$pkgrel" # Backwards compatibility
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
} }
check() { check() {
nosetests python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m nose
} }
package() { package() {
python3 setup.py install --skip-build --root="$pkgdir" gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
} }
sha512sums="ed8cb28c4e8d936de96db0bf9f7cb45b253dc204c4b8f8dd8022ef1552592ff6324b4a33d3ee862794a6e20eb8c32a0365e7b9397d427da5022c5ded3dfa308a py3-flask-principal-0.4.0.tar.gz" sha512sums="ed8cb28c4e8d936de96db0bf9f7cb45b253dc204c4b8f8dd8022ef1552592ff6324b4a33d3ee862794a6e20eb8c32a0365e7b9397d427da5022c5ded3dfa308a py3-flask-principal-0.4.0.tar.gz"