mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-12 18:48:33 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: psykose <alice@ayaya.dev>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.nt>
|
|
pkgname=py3-tzdata
|
|
pkgver=2025.2
|
|
pkgrel=0
|
|
pkgdesc="Python package wrapping the IANA time zone database"
|
|
url="https://github.com/python/tzdata"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
depends="python3 py3-attrs"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest py3-pytest-subtests"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/python/tzdata/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/tzdata-$pkgver"
|
|
|
|
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
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
a15ddf3d56e299f26cc76f379dc821f092ef65361d0df051d5e9d71a9dd8293e072d153c479d1d86c56ffcc124c36bad52b48b0743e3abfdb6339cac1206e66c py3-tzdata-2025.2.tar.gz
|
|
"
|