diff --git a/srcpkgs/python-Babel/template b/srcpkgs/python-Babel/template deleted file mode 100644 index 4d110e70d4..0000000000 --- a/srcpkgs/python-Babel/template +++ /dev/null @@ -1,30 +0,0 @@ -# Template file for 'python-Babel' -pkgname=python-Babel -version=2.8.0 -revision=4 -wrksrc="${pkgname#*-}-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python-setuptools python-pytz" -short_desc="Tools for internationalizing Python applications (Python2)" -maintainer="Alessio Sergi " -license="BSD-3-Clause" -homepage="http://babel.pocoo.org/" -distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz" -checksum=1aac2ae2d0d8ea368fa90906567f5c08463d98ade155c0c4bfedd6a0f7160e38 -alternatives="babel:pybabel:/usr/bin/pybabel2" - -post_install() { - vlicense LICENSE -} - -python3-Babel_package() { - depends="python3-setuptools python3-pytz" - short_desc="${short_desc/Python2/Python3}" - alternatives="babel:pybabel:/usr/bin/pybabel3" - pkg_install() { - vmove usr/bin/pybabel3 - vmove usr/lib/python3* - vlicense LICENSE - } -} diff --git a/srcpkgs/python3-Babel b/srcpkgs/python3-Babel deleted file mode 120000 index d4dcb8aac7..0000000000 --- a/srcpkgs/python3-Babel +++ /dev/null @@ -1 +0,0 @@ -python-Babel \ No newline at end of file diff --git a/srcpkgs/python3-Babel/template b/srcpkgs/python3-Babel/template new file mode 100644 index 0000000000..65cf873123 --- /dev/null +++ b/srcpkgs/python3-Babel/template @@ -0,0 +1,23 @@ +# Template file for 'python3-Babel' +pkgname=python3-Babel +version=2.9.1 +revision=1 +wrksrc="${pkgname#*-}-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-setuptools python3-pytz" +checkdepends="python3-pytest python3-pytz python3-freezegun" +short_desc="Tools for internationalizing Python applications (Python3)" +maintainer="Alessio Sergi " +license="BSD-3-Clause" +homepage="http://babel.pocoo.org/" +distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz" +checksum=bc0c176f9f6a994582230df350aa6e05ba2ebe4b3ac317eab29d9be5d2768da0 +# test_extract_error_code fails: https://github.com/python-babel/babel/issues/802#issuecomment-1029132391 +make_check=no + +post_install() { + vlicense LICENSE + # for compatibility + ln -s pybabel "${DESTDIR}/usr/bin/pybabel3" +} diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template index 92e675c84d..ec1518d050 100644 --- a/srcpkgs/removed-packages/template +++ b/srcpkgs/removed-packages/template @@ -261,6 +261,7 @@ replaces=" pygtksourceview<=2.10.1_5 pyside-tools<=0.2.15_2 pystopwatch<=2019_2 + python-Babel<=2.8.0_4 python-M2Crypto<=0.35.2_7 python-Pillow<=6.2.2_3 python-Pygments<=2.5.2_4