1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/community/py3-keyring/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

40 lines
952 B
Text

# Maintainer: opal hart <opal@wowana.me>
pkgname=py3-keyring
pkgver=23.13.1
pkgrel=0
pkgdesc="Access the system keyring service from Python"
url="https://github.com/jaraco/keyring"
arch="noarch"
license="MIT"
depends="
py3-importlib-metadata
py3-jaraco.classes
py3-jeepney
py3-secretstorage
python3
"
makedepends="py3-setuptools py3-gpep517 py3-installer py3-wheel py3-setuptools_scm"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/k/keyring/keyring-$pkgver.tar.gz"
builddir="$srcdir/keyring-$pkgver"
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/keyring-$pkgver-py3-none-any.whl
}
sha512sums="
7e56380e7311a31d8703b9e3beb74a8c8ce026f6cf9e1792780d349f3db61f50a1905c7d509a7013dd7cb47428dd3c28c3620815f01d3c4dbd7f648e056539d0 keyring-23.13.1.tar.gz
"