blob: a02bf24c27cccc4a580ea5a2fe044a08f81badc3 (
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
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-tz
pkgver=2022.7
pkgrel=0
pkgdesc="Python3 definitions of world timezone"
url="https://pythonhosted.org/pytz/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="https://pypi.python.org/packages/source/p/pytz/pytz-$pkgver.tar.gz"
builddir="$srcdir/pytz-$pkgver"
replaces="py-tz" # Backwards compatibility
provides="py-tz=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
cd pytz/tests
python3 test_tzinfo.py
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
48bad8a88e124c0935bf307713659228100c5c38230b3ee7f0aa92e46a1a305c4cebef388208dc7090ba59f51c4816f78789a091d69541615e885a9ad61c475b pytz-2022.7.tar.gz
"
|