diff --git a/srcpkgs/python-twitter/template b/srcpkgs/python-twitter/template index 11b80bb45b3..afab2d42fcf 100644 --- a/srcpkgs/python-twitter/template +++ b/srcpkgs/python-twitter/template @@ -4,8 +4,9 @@ version=3.1 revision=1 noarch=yes build_style=python-module +python_versions="2.7 3.4" pycompile_module="twitter" -hostmakedepends="python-setuptools" +hostmakedepends="python-setuptools python3.4-setuptools" depends="python-requests python-requests-oauthlib" short_desc="Python2 wrapper around the Twitter API" maintainer="Peter Bui " @@ -13,3 +14,15 @@ license="Apache-2.0" homepage="https://github.com/bear/python-twitter" distfiles="${PYPI_SITE}/p/${pkgname}/${pkgname}-${version}.tar.gz" checksum=74cfdd6a7bbe00fdd08ce582c9a2ee5d6c080e6c228ffced009a356092fbb923 + +python3.4-twitter_package() { + noarch=yes + depends="python3.4-requests python3.4-requests-oauthlib" + pycompile_version="3.4" + pycompile_module="twitter" + short_desc="${short_desc/Python2/Python3.4}" + pkg_install() { + vmove usr/lib/python3.4 + } +} + diff --git a/srcpkgs/python3.4-twitter b/srcpkgs/python3.4-twitter new file mode 120000 index 00000000000..4658fe99242 --- /dev/null +++ b/srcpkgs/python3.4-twitter @@ -0,0 +1 @@ +python-twitter \ No newline at end of file