mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
pkgname=py3-pytzdata
|
|
pkgver=2020.1
|
|
pkgrel=2
|
|
pkgdesc="Olson timezone database for Python"
|
|
url="https://github.com/sdispater/pytzdata"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 tzdata"
|
|
makedepends="py3-gpep517 py3-poetry-core"
|
|
checkdepends="py3-pytest"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sdispater/pytzdata/archive/$pkgver.tar.gz
|
|
masonry.patch"
|
|
builddir="$srcdir/pytzdata-$pkgver"
|
|
|
|
# renamed from this, since the module is pytzdata, and tzdata is something else
|
|
replaces="py3-tzdata"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/pytzdata-$pkgver-py2.py3-none-any.whl
|
|
}
|
|
|
|
sha512sums="
|
|
fd154bfbe90ce07a90f769063b772234036d2627c1e6d78a465d9ddbc894e50cb9d821c04ebff1a7cc6a327266f7843fe54e5592d37c41db023329d6e0f668c2 py3-pytzdata-2020.1.tar.gz
|
|
8724c71912f857e05e749d6fd9ed5015f1de9a67b66c57c26918d9b5203780d5fbca37b5d0367483481af9197d1cefdea43119bc4989af0bca17920a691228ce masonry.patch
|
|
"
|