diff --git a/srcpkgs/python-urllib3/template b/srcpkgs/python-urllib3/template deleted file mode 100644 index bf98d448e44..00000000000 --- a/srcpkgs/python-urllib3/template +++ /dev/null @@ -1,34 +0,0 @@ -# Template file for 'python-urllib3' -pkgname=python-urllib3 -version=1.26.6 -revision=2 -wrksrc="urllib3-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-six" -short_desc="HTTP library with thread-safe connection pooling (Python2)" -maintainer="Alessio Sergi " -license="MIT" -homepage="https://urllib3.readthedocs.io/" -distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz" -checksum=f57b4c16c62fa2760b7e3d97c35b255512fb6b59a259730f36ba32ce9f8e342f -# Checks depend on unpackaged "trustme" -make_check=no - -post_install() { - for sitelib in ${py3_sitelib} ${py2_sitelib}; do - rm ${DESTDIR}/${sitelib}/urllib3/packages/six.py - ln -sf ../../six.py ${DESTDIR}/${sitelib}/urllib3/packages/six.py - done - - vlicense LICENSE.txt -} - -python3-urllib3_package() { - depends="python3-six" - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - vlicense LICENSE.txt - } -} diff --git a/srcpkgs/python3-urllib3 b/srcpkgs/python3-urllib3 deleted file mode 120000 index 18d4c50ddfe..00000000000 --- a/srcpkgs/python3-urllib3 +++ /dev/null @@ -1 +0,0 @@ -python-urllib3 \ No newline at end of file diff --git a/srcpkgs/python3-urllib3/template b/srcpkgs/python3-urllib3/template new file mode 100644 index 00000000000..b137784f700 --- /dev/null +++ b/srcpkgs/python3-urllib3/template @@ -0,0 +1,27 @@ +# Template file for 'python3-urllib3' +pkgname=python3-urllib3 +version=1.26.7 +revision=1 +wrksrc="urllib3-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-six" +checkdepends="python3-pytest python3-trustme python3-mock python3-pysocks + python3-tornado python3-dateutil" +short_desc="HTTP library with thread-safe connection pooling" +maintainer="Alessio Sergi " +license="MIT" +homepage="https://urllib3.readthedocs.io/" +distfiles="${PYPI_SITE}/u/urllib3/urllib3-${version}.tar.gz" +checksum=4987c65554f7a2dbf30c18fd48778ef124af6fab771a377103da0585e2336ece + +pre_check() { + rm test/test_retry{,_deprecated}.py # FIXME +} + +post_install() { + rm ${DESTDIR}/${py3_sitelib}/urllib3/packages/six.py + ln -sf ../../six.py ${DESTDIR}/${py3_sitelib}/urllib3/packages/six.py + + vlicense LICENSE.txt +}