2016-07-06 10:00:46 +00:00
|
|
|
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
|
|
|
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
2019-09-19 18:37:07 -03:00
|
|
|
pkgname=py3-wcwidth
|
2016-07-06 10:00:46 +00:00
|
|
|
_pkgname=wcwidth
|
2024-01-07 04:38:40 +00:00
|
|
|
pkgver=0.2.13
|
2024-03-07 21:03:24 +01:00
|
|
|
pkgrel=1
|
2016-07-06 10:00:46 +00:00
|
|
|
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"
|
2016-07-06 10:00:46 +00:00
|
|
|
arch="noarch"
|
|
|
|
license="MIT"
|
2023-09-30 05:12:43 +00:00
|
|
|
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"
|
2016-07-06 10:00:46 +00:00
|
|
|
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"
|
2022-04-12 19:06:23 +00:00
|
|
|
|
2016-07-06 10:00:46 +00:00
|
|
|
build() {
|
2023-09-30 05:12:43 +00:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir .dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
2016-07-06 10:00:46 +00:00
|
|
|
}
|
|
|
|
|
2022-02-10 14:24:55 +01:00
|
|
|
check() {
|
2023-09-30 05:12:43 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2016-07-06 10:00:46 +00:00
|
|
|
package() {
|
2023-09-30 05:12:43 +00:00
|
|
|
python3 -m installer -d "$pkgdir" \
|
|
|
|
.dist/*.whl
|
2016-07-06 10:00:46 +00:00
|
|
|
}
|
|
|
|
|
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
|
|
|
"
|