diff --git a/srcpkgs/python-chardet/template b/srcpkgs/python-chardet/template index 18ae457b2a8..276b8e94980 100644 --- a/srcpkgs/python-chardet/template +++ b/srcpkgs/python-chardet/template @@ -1,23 +1,27 @@ # Template file for 'python-chardet' pkgname=python-chardet -version=3.0.4 -revision=5 +version=4.0.0 +revision=1 wrksrc="chardet-${version}" build_style=python-module hostmakedepends="python-setuptools python3-setuptools" depends="python-setuptools" -pycompile_module="chardet" +checkdepends="python3-pytest python-pytest" short_desc="Universal encoding detector for Python 2 and 3 (Python2)" maintainer="Alessio Sergi " homepage="https://github.com/chardet/chardet" license="LGPL-2.1" distfiles="${PYPI_SITE}/c/chardet/chardet-${version}.tar.gz" -checksum=84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae +checksum=0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa alternatives="chardet:chardetect:/usr/bin/chardetect2" +do_check() { + python2 -m pytest + python3 -m pytest +} + python3-chardet_package() { depends="python3-setuptools" - pycompile_module="chardet" short_desc="${short_desc/Python2/Python3}" alternatives="chardet:chardetect:/usr/bin/chardetect3" pkg_install() {