diff --git a/srcpkgs/python-chardet/template b/srcpkgs/python-chardet/template deleted file mode 100644 index 14678b0650..0000000000 --- a/srcpkgs/python-chardet/template +++ /dev/null @@ -1,31 +0,0 @@ -# Template file for 'python-chardet' -pkgname=python-chardet -version=4.0.0 -revision=3 -wrksrc="chardet-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools" -checkdepends="python3-pytest python-pytest" -short_desc="Universal encoding detector for Python 2 and 3 (Python2)" -maintainer="Alessio Sergi " -license="LGPL-2.1-only" -homepage="https://github.com/chardet/chardet" -distfiles="${PYPI_SITE}/c/chardet/chardet-${version}.tar.gz" -checksum=0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa -alternatives="chardet:chardetect:/usr/bin/chardetect2" - -do_check() { - python2 -m pytest - python3 -m pytest -} - -python3-chardet_package() { - depends="python3-setuptools" - short_desc="${short_desc/Python2/Python3}" - alternatives="chardet:chardetect:/usr/bin/chardetect3" - pkg_install() { - vmove usr/bin/chardetect3 - vmove usr/lib/python3* - } -} diff --git a/srcpkgs/python3-chardet b/srcpkgs/python3-chardet deleted file mode 120000 index e77647d75e..0000000000 --- a/srcpkgs/python3-chardet +++ /dev/null @@ -1 +0,0 @@ -python-chardet \ No newline at end of file diff --git a/srcpkgs/python3-chardet/template b/srcpkgs/python3-chardet/template new file mode 100644 index 0000000000..bc5dfe6ee5 --- /dev/null +++ b/srcpkgs/python3-chardet/template @@ -0,0 +1,16 @@ +# Template file for 'python3-chardet' +pkgname=python3-chardet +version=4.0.0 +revision=3 +wrksrc="chardet-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-setuptools" +checkdepends="python3-pytest" +short_desc="Universal encoding detector" +maintainer="Alessio Sergi " +license="LGPL-2.1-only" +homepage="https://github.com/chardet/chardet" +distfiles="${PYPI_SITE}/c/chardet/chardet-${version}.tar.gz" +checksum=0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa +alternatives="chardet:chardetect:/usr/bin/chardetect2"