[arch-commits] Commit in python-babel/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Tue Nov 30 14:54:58 UTC 2021
Date: Tuesday, November 30, 2021 @ 14:54:58
Author: foutrelis
Revision: 1057762
archrelease: copy trunk to community-staging-any
Added:
python-babel/repos/community-staging-any/
python-babel/repos/community-staging-any/PKGBUILD
(from rev 1057761, python-babel/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: python-babel/repos/community-staging-any/PKGBUILD (from rev 1057761, python-babel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-11-30 14:54:58 UTC (rev 1057762)
@@ -0,0 +1,43 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.no>
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor : Giedrius Slavinskas <giedrius25 at gmail.com>
+
+pkgname=python-babel
+pkgver=2.9.1
+_core=37
+pkgrel=2
+pkgdesc="A collection of tools for internationalizing Python applications"
+url="http://babel.pocoo.org/"
+license=("BSD")
+arch=('any')
+depends=('python' 'python-pytz')
+makedepends=('python-setuptools')
+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=('96102878b273d0160c210d9323406d26c4a5cf0f5d3a0097a059836a624231f9'
+ 'ba93f5ba256a61a6f8253397c6c4b1a9b9e77531f013cc7ffa7977b5f7e4da57')
+
+prepare() {
+ cp "$srcdir"/cldr-core-$_core.zip babel-$pkgver/cldr/cldr-core-$_core.zip
+}
+
+build(){
+ cd "babel-$pkgver"
+ python setup.py import_cldr
+ python setup.py build
+}
+
+check(){
+ 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 "babel-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -D -m0644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list