blob: 89af9c7778faf94513e70bd13e09e62db21bc171 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-charset-normalizer
pkgver=3.0.1
pkgrel=1
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-setuptools"
checkdepends="py3-pytest"
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() {
python3 setup.py build
}
check() {
pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
25bfb8d708f2c1827d4f074f1b3c4f9932f7a00b833423f9edd6d5a942af39eeb703dea7471bdf2764094e8d01af7d98017c030f7b7a2a1a24e65c1161aef52f charset-normalizer-3.0.1.tar.gz
"
|