aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-tz/APKBUILD
blob: ca3b27178a5554f71a5c76e7fe26da7b3e2f35ba (plain) (blame)
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
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-tz
pkgver=2021.1
pkgrel=2
pkgdesc="Python3 definitions of world timezone"
url="http://pytz.sourceforge.net/"
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 --prefix=/usr --root="$pkgdir"
}

sha512sums="507e24e3c5c2c619d9f3c7f4c33d44d262e33656b07701d0db78f5d67b263ad845dccc4ff50e48c580b0f295cf97ed146af7b9259890a50bb6da4c82b70c439b  pytz-2021.1.tar.gz"