mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-10 23:39:03 +02:00
31 lines
965 B
Text
31 lines
965 B
Text
# Maintainer: prspkt <prspkt@protonmail.com>
|
|
pkgname=py3-tzlocal
|
|
pkgver=5.3
|
|
pkgrel=0
|
|
pkgdesc="Python tzinfo object for the local timezone"
|
|
url="https://github.com/regebro/tzlocal"
|
|
arch="noarch"
|
|
license="MIT"
|
|
replaces="py-tzlocal" # for backwards compatibility
|
|
provides="py-tzlocal=$pkgver-r$pkgrel" # for backwards compatibility
|
|
depends="python3 py3-tzdata"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/t/tzlocal/tzlocal-$pkgver.tar.gz"
|
|
builddir="$srcdir/tzlocal-$pkgver"
|
|
options="!check" # the package requires a configured timezone
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
de2f8aefc7d835e2a2d3e544058987f8b6641ab8ed7be41d7909cda4a1db867684cd18cc69258e2c53de7e640dca9b641740b4fc714e542b2cac37af1aceda80 py3-tzlocal-5.3.tar.gz
|
|
"
|