blob: 7f388de46e9f2a89c14fdfb633a4880827576683 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Kaarle Ritvanen <kunkku@alpinelinux.org>
# Maintainer: Kaarle Ritvanen <kunkku@alpinelinux.org>
pkgname=py3-babel
_pkgname=Babel
pkgver=2.11.0
pkgrel=1
pkgdesc="Python3 i18n tool"
url="http://babel.pocoo.org/"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-tz"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-freezegun"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # freezegun not in main
replaces="py-babel" # Backwards compatibility
provides="py-babel=$pkgver-r$pkgrel" # Backwards compatibility
# secfixes:
# 2.9.1-r0:
# - CVE-2021-42771
build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/build/lib" \
python3 -m unittest discover tests
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
526368dc5e44f2d93c52f2fcb544130eea6c6b7c78325bd56c6d9a6706890a4cd9daa1498d639aab65059801d87977da626e64585083c58c4b328001991eea0b Babel-2.11.0.tar.gz
"
|