* update python-babel to 2.9.1-1
This commit is contained in:
parent
b722dc2b5e
commit
d7c3919aee
@ -4,7 +4,7 @@
|
||||
# Contributor : Giedrius Slavinskas <giedrius25@gmail.com>
|
||||
|
||||
pkgname=python-babel
|
||||
pkgver=2.9.0
|
||||
pkgver=2.9.1
|
||||
_core=37
|
||||
pkgrel=1
|
||||
pkgdesc="A collection of tools for internationalizing Python applications"
|
||||
@ -17,7 +17,7 @@ checkdepends=('python-pytest' 'python-pytest-runner' 'python-freezegun')
|
||||
noextract=("cldr-core-$_core.zip")
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/python-babel/babel/archive/v$pkgver.tar.gz"
|
||||
"cldr-core-$_core.zip::http://unicode.org/Public/cldr/$_core/core.zip")
|
||||
sha256sums=('7df55ebc7a75b6c544c381e1cc07151c2429f73f4ed01107bd8998b96cc83f42'
|
||||
sha256sums=('96102878b273d0160c210d9323406d26c4a5cf0f5d3a0097a059836a624231f9'
|
||||
'ba93f5ba256a61a6f8253397c6c4b1a9b9e77531f013cc7ffa7977b5f7e4da57')
|
||||
|
||||
prepare() {
|
||||
@ -25,20 +25,21 @@ prepare() {
|
||||
}
|
||||
|
||||
build(){
|
||||
cd "$srcdir/babel-$pkgver"
|
||||
cd "babel-$pkgver"
|
||||
python setup.py import_cldr
|
||||
python setup.py build
|
||||
}
|
||||
|
||||
check(){
|
||||
cd "$srcdir/babel-$pkgver"
|
||||
cd "babel-$pkgver"
|
||||
# the tests fail if running in the wrong timezone:
|
||||
# https://github.com/python-babel/babel/issues/757
|
||||
TZ=UTC python setup.py pytest
|
||||
}
|
||||
|
||||
package_python-babel() {
|
||||
cd "$srcdir"/babel-${pkgver}
|
||||
cd "babel-$pkgver"
|
||||
export PYTHONHASHSEED=0
|
||||
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
|
||||
install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user