mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-cchardet: build with gpep517
This commit is contained in:
parent
f7c42d5f51
commit
34f78c6508
@ -1,27 +1,26 @@
|
||||
# Maintainer: Michał Adamski <michal@ert.pl>
|
||||
pkgname=py3-cchardet
|
||||
pkgver=2.1.7
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="High speed universal character encoding detector"
|
||||
url="https://github.com/PyYoshi/cChardet"
|
||||
arch="all"
|
||||
license="MPL-1.1"
|
||||
makedepends="cython py3-setuptools python3-dev"
|
||||
makedepends="cython py3-setuptools python3-dev py3-gpep517"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="https://files.pythonhosted.org/packages/source/c/cchardet/cchardet-$pkgver.tar.gz"
|
||||
builddir="$srcdir/cchardet-$pkgver"
|
||||
options="!check" # tests not included in pypi tarball
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py test
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user