mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-21 05:26:40 +02:00
43 lines
1.2 KiB
Text
43 lines
1.2 KiB
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=py3-charset-normalizer
|
|
pkgver=3.4.1
|
|
pkgrel=0
|
|
pkgdesc="offers you an alternative to Universal Charset Encoding Detector, also known as Chardet"
|
|
url="https://github.com/ousret/charset_normalizer"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/c/charset_normalizer/charset_normalizer-$pkgver.tar.gz"
|
|
builddir="$srcdir/charset_normalizer-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# community/py3-pytest-cov not available
|
|
sed -i '/cov-report/d' setup.cfg
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2891c0bd3097ad38d296a8378ded36110a06113c0f79e49cdfd7f3bca4f42487d10895db34cbb020cb70e93d9094ae72555ceef5535f8984de1cac4082232f4f charset_normalizer-3.4.1.tar.gz
|
|
"
|