ayaports/unmaintained/py3-tzdata/APKBUILD

35 lines
983 B
Text
Raw Permalink Normal View History

# Maintainer: Antoine Martin <dev@ayakael.net>
pkgname='py3-tzdata'
_pkgname="tzdata"
pkgver=2022.1
_pkgver="$pkgver"
pkgrel=0
arch='noarch'
pkgdesc="Provider of IANA time zone data"
url="https://github.com/python/tzdata"
license="Apache"
depends="python3"
makedepends="py3-build py3-installer py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-pytest-subtests"
source="${pkgname}-${pkgver}.tar.gz::https://pypi.io/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$_pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$_pkgver
build() {
python3 -m build --wheel --skip-dependency-check --no-isolation
}
check(){
python3 -m venv --system-site-packages test-env
2023-01-12 18:48:03 +00:00
test-env/bin/python3 -m installer dist/*.whl
test-env/bin/python3 -m pytest
}
package() {
python3 -m installer --destdir="$pkgdir" dist/*.whl
}
sha512sums="
431c1bbc8cb7093e2bd36492d9c63496d52001422d385710c45aa95a3923fc06757a3a65ca4c7c9c44d47fd652f02cef47657747e1dc9297b4855fb825376840 py3-tzdata-2022.1.tar.gz
"