aports/community/py3-secure-cookie/APKBUILD
2023-04-28 23:45:29 +00:00

35 lines
1.0 KiB
Plaintext

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-secure-cookie
pkgver=0.2.0
pkgrel=5
pkgdesc="Secure cookies and sessions for WSGI"
url="https://github.com/pallets-eco/secure-cookie"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-werkzeug"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/s/secure-cookie/secure-cookie-$pkgver.tar.gz
werkzeug-2.1.patch
"
builddir="$srcdir/secure-cookie-$pkgver"
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD"/build/lib pytest
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
5fb1df7cf6540a90120200655756cd5bf087810fdc4e66596fe8c2c8e2e300a1e5519fcc691790fe600921a1afd24db15e8ce1cfb74b2dc670ab305481f6ecff secure-cookie-0.2.0.tar.gz
2c91908901f01d524650f28607aef9d0e4351950333debf863cb6f6211cd493669615790753cf3a951cffc4cafbd5970314f3d943aa3b5ac3d1e1a0798a37acd werkzeug-2.1.patch
"