1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/py3-pytz-deprecation-shim/APKBUILD
psykose aa528d2a76 */*: unify gpep517 use to output to fd 3
outputting to 3 then redirecting all to stderr prevents clobbering of
wrapped build fds
2023-01-18 12:58:53 +01:00

34 lines
927 B
Text

# Maintainer: psykose <alice@ayaya.dev>
pkgname=py3-pytz-deprecation-shim
pkgver=0.1.0_p0
_pkgver=0.1.0.post0
pkgrel=1
pkgdesc="Shims to help you safely remove pytz"
url="https://github.com/pganssle/pytz-deprecation-shim"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-tzdata"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-hypothesis py3-tz"
source="$pkgname-$pkgver.tar.gz::https://github.com/pganssle/pytz-deprecation-shim/archive/refs/tags/$_pkgver.tar.gz"
builddir="$srcdir/pytz-deprecation-shim-$_pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
PYTHONPATH=src \
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
e71f34cd8e931fffb3d118726cffab3820268678ab32e0f314a11aed8dabba99292c5abfdd99b8ba4120da5d45d2fa5437e048c48d991921d62984e22088d31f py3-pytz-deprecation-shim-0.1.0_p0.tar.gz
"