initial import
This commit is contained in:
49
python-beaker/PKGBUILD
Normal file
49
python-beaker/PKGBUILD
Normal file
@@ -0,0 +1,49 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgbase=python-beaker
|
||||
pkgname=('python-beaker' 'tauthon-beaker')
|
||||
pkgver=1.10.0
|
||||
pkgrel=2
|
||||
arch=('any')
|
||||
license=('Modified-BSD')
|
||||
url="https://beaker.readthedocs.io/"
|
||||
makedepends=('python-setuptools' 'tauthon-setuptools' 'tauthon-funcsigs')
|
||||
source=("$pkgbase-$pkgver.tar.gz::https://github.com/bbangert/beaker/archive/$pkgver.tar.gz")
|
||||
sha512sums=('2a8a6e10f771aaa33190598a52bf1110f1ae1116828c1e9cd42aeceb3dc7a9af896f20c809f165c50940de44d48628d6cacb6f2b480a128bae05f902898ed2b5')
|
||||
|
||||
prepare() {
|
||||
# Use a fake for tests
|
||||
sed -e '/class TestMongoDB/i import mongomock' \
|
||||
-e "s|'mongodb://localhost:27017/beaker_testdb'|mongomock.MongoClient('mongodb://localhost:27017/beaker_testdb')|" \
|
||||
-i beaker-$pkgver/tests/test_managers/test_ext_mongodb.py
|
||||
|
||||
cp -a beaker-$pkgver{,-tauthon}
|
||||
|
||||
sed -i "s#/usr/bin/python#/usr/bin/tauthon#" beaker-$pkgver-tauthon/beaker/crypto/pbkdf2.py
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir"/beaker-$pkgver
|
||||
python setup.py build
|
||||
|
||||
cd "$srcdir"/beaker-$pkgver-tauthon
|
||||
tauthon setup.py build
|
||||
}
|
||||
|
||||
package_python-beaker() {
|
||||
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
|
||||
depends=('python')
|
||||
|
||||
cd beaker-$pkgver
|
||||
python setup.py install --root="$pkgdir" --optimize=1
|
||||
install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/python-beaker
|
||||
}
|
||||
|
||||
package_tauthon-beaker() {
|
||||
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Tauthon scripts and applications"
|
||||
depends=('tauthon-funcsigs')
|
||||
|
||||
cd beaker-$pkgver-tauthon
|
||||
tauthon setup.py install --root="$pkgdir" --optimize=1
|
||||
install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/tauthon-beaker
|
||||
}
|
||||
Reference in New Issue
Block a user