1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 02:05:16 +03:00
aports/community/py3-secure-cookie/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
1,019 B
Text

# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-secure-cookie
pkgver=0.2.0
pkgrel=4
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"
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
"