diff --git a/srcpkgs/python-pytz/template b/srcpkgs/python-pytz/template index 45ed1bf5deb..ced4c403e26 100644 --- a/srcpkgs/python-pytz/template +++ b/srcpkgs/python-pytz/template @@ -1,12 +1,11 @@ # Template file for 'python-pytz' pkgname=python-pytz version=2016.7 -revision=1 +revision=2 noarch=yes wrksrc="pytz-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python tzdata" pycompile_module="pytz" short_desc="Python2 timezone library" @@ -26,14 +25,20 @@ post_install() { vlicense LICENSE.txt LICENSE } -python3.4-pytz_package() { +python3-pytz_package() { noarch=yes - depends="python3.4 tzdata" - pycompile_version="3.4" + depends="python3 tzdata" pycompile_module="pytz" - short_desc="${short_desc/Python2/Python3.4}" + replaces="python3.4-pytz>=0" + short_desc="${short_desc/Python2/Python3}" pkg_install() { - vmove usr/lib/python3.4 + vmove usr/lib/python3* vlicense LICENSE.txt LICENSE } } +python3.4-pytz_package() { + noarch=yes + build_style=meta + short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)" + depends="python3-pytz>=${version}_${revision}" +} diff --git a/srcpkgs/python3-pytz b/srcpkgs/python3-pytz new file mode 120000 index 00000000000..6a88c99e723 --- /dev/null +++ b/srcpkgs/python3-pytz @@ -0,0 +1 @@ +python-pytz \ No newline at end of file