mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-tz
|
|
pkgver=2025.2
|
|
pkgrel=0
|
|
pkgdesc="Python3 definitions of world timezone"
|
|
url="https://pythonhosted.org/pytz/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
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() {
|
|
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
cd pytz/tests
|
|
../../.testenv/bin/python3 test_tzinfo.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
1ac84bd8d9a152b71b4de302a472e50619c901ad4c7747ddddbb780d8d3df07e5e18d3c68722eff08f8e8ff625d46133fe12bcf6f5210b69ce589051247cd4b6 pytz-2025.2.tar.gz
|
|
"
|