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

44 lines
1.2 KiB
Text

# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pyphen
_pkgname=Pyphen
pkgver=0.13.2
pkgrel=0
pkgdesc="python-based dictionary hyphenator library"
url="https://www.pyphen.org"
arch="noarch"
license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1"
depends="python3"
makedepends="py3-gpep517 py3-flit-core"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-xdist"
source="$_pkgname-$pkgver.tar.gz::https://github.com/Kozea/Pyphen/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-pyphen" # Backwards compatibility
provides="py-pyphen=$pkgver-r$pkgrel" # Backwards compatibility
prepare() {
default_prepare
# disable pytest-flake8
# https://github.com/tholo/pytest-flake8/issues/87
sed -i 's/--flake8//' pyproject.toml
}
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" \
dist/pyphen-$pkgver-py3-none-any.whl
}
sha512sums="
63bd3411c3120e73cd484eef3c3a280e9f8fee40f9aaf3fdca46c3ddf545aeb462eb4214fb239bd6a1fb6c065d5a34290f39763985e85447f413fc0af0afdae8 Pyphen-0.13.2.tar.gz
"