diff --git a/srcpkgs/python-html5lib/template b/srcpkgs/python-html5lib/template deleted file mode 100644 index a9ff3cac98d..00000000000 --- a/srcpkgs/python-html5lib/template +++ /dev/null @@ -1,32 +0,0 @@ -# Template file for 'python-html5lib' -pkgname=python-html5lib -version=1.0.1 -revision=3 -wrksrc="html5lib-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-six python-webencodings" -pycompile_module="html5lib" -short_desc="Python2 HTML parser based on the WHATWG HTML5 specification" -maintainer="Alessio Sergi " -homepage="https://github.com/html5lib/html5lib-python" -license="MIT" -distfiles="${PYPI_SITE}/h/html5lib/html5lib-${version}.tar.gz" -checksum=66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736 - -pre_build() { - sed -i '/setuptools>=/d' setup.py -} -post_install() { - vlicense LICENSE -} - -python3-html5lib_package() { - pycompile_module="html5lib" - depends="python3-six python3-webencodings" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-html5lib b/srcpkgs/python3-html5lib deleted file mode 120000 index a9b42a3dabf..00000000000 --- a/srcpkgs/python3-html5lib +++ /dev/null @@ -1 +0,0 @@ -python-html5lib \ No newline at end of file diff --git a/srcpkgs/python3-html5lib/template b/srcpkgs/python3-html5lib/template new file mode 100644 index 00000000000..5568ed9acdd --- /dev/null +++ b/srcpkgs/python3-html5lib/template @@ -0,0 +1,26 @@ +# Template file for 'python3-html5lib' +pkgname=python3-html5lib +version=1.0.1 +revision=4 +wrksrc="html5lib-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-six python3-webencodings" +checkdepends="$depends python3-pytest python3-mock python3-lxml" +short_desc="Python3 HTML parser based on the WHATWG HTML5 specification" +maintainer="Orphaned " +license="MIT" +homepage="https://github.com/html5lib/html5lib-python" +distfiles="${PYPI_SITE}/h/html5lib/html5lib-${version}.tar.gz" +checksum=66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736 + +pre_build() { + sed -i '/setuptools>=/d' setup.py +} +do_check() { + export PYTHONPATH=$PWD/build/lib + : requires more Python modules +} +post_install() { + vlicense LICENSE +} diff --git a/srcpkgs/python-html5lib/update b/srcpkgs/python3-html5lib/update similarity index 100% rename from srcpkgs/python-html5lib/update rename to srcpkgs/python3-html5lib/update