1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DISTUTILS_USE_SETUPTOOLS="bdepend"
7 EGIT_COMMIT="2adc067f306d9e7d8b634f66e96c52d80a42e1ff"
8 PYTHON_COMPAT=( python3_{6,7,8} )
9 PYTHON_REQ_USE="readline"
13 DESCRIPTION="A library that enables you to build applications which use the WhatsApp service"
14 HOMEPAGE="https://github.com/tgalal/yowsup"
15 SRC_URI="https://github.com/tgalal/yowsup/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
22 dev-python/appdirs[${PYTHON_USEDEP}]
23 dev-python/configargparse[${PYTHON_USEDEP}]
24 dev-python/consonance[${PYTHON_USEDEP}]
25 dev-python/pillow[${PYTHON_USEDEP}]
26 dev-python/protobuf-python[${PYTHON_USEDEP}]
27 dev-python/python-axolotl[${PYTHON_USEDEP}]
28 dev-python/six[${PYTHON_USEDEP}]
33 S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
35 PATCHES=( "${FILESDIR}/${PF}-fix-install-path.patch" )
40 # After talking to upstream, version restriction can be lifted
41 # and also 'argparse' needs to be removed.
42 sed -e 's/==0.1.3-1//' -e 's/==0.2.2//' -e 's/==1.10//' -e 's/argparse//' -i setup.py || die
46 einfo "Warning: It seems that recently yowsup gets detected during registration"
47 einfo "resulting in an instant ban for your number right after registering"
48 einfo "with the code you receive by sms/voice."
49 einfo "See https://github.com/tgalal/yowsup/issues/2829 for more information."