aports/main/py3-wcwidth/APKBUILD

42 lines
1.2 KiB
Text
Raw Permalink Normal View History

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
2019-09-19 18:37:07 -03:00
pkgname=py3-wcwidth
_pkgname=wcwidth
2024-01-07 04:38:40 +00:00
pkgver=0.2.13
2024-03-07 21:03:24 +01:00
pkgrel=1
pkgdesc="Measures number of Terminal column cells of wide-character codes"
2023-02-26 23:08:37 +01:00
url="https://pypi.org/project/wcwidth"
arch="noarch"
license="MIT"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest-cov"
2023-04-18 16:39:19 +00:00
subpackages="$pkgname-pyc"
2019-09-19 18:37:07 -03:00
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
2019-09-19 18:37:07 -03:00
replaces="py-wcwidth" # Backwards compatibility
provides="py-wcwidth=$pkgver-r$pkgrel" # Backwards compatibility
2022-04-12 19:10:30 +00:00
# circular dependency on pytest
options="$options !check"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
2022-02-10 14:24:55 +01:00
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
2022-02-10 14:24:55 +01:00
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
2022-02-10 14:24:55 +01:00
sha512sums="
2024-01-07 04:38:40 +00:00
1eadda149936cf2eefe5d09c411774dc87c8a358f2dd92d74f427d7b47f07c05557e849c46122d44788c2bd7c97eb85fc5f902d9a158d68ab9e352c5185ba2d5 wcwidth-0.2.13.tar.gz
2022-02-10 14:24:55 +01:00
"