pentoo-overlay/dev-python/gpapi/gpapi-0.4.ebuild
2018-01-28 17:25:11 +08:00

29 lines
847 B
Bash

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python3_{4,5,6} )
inherit distutils-r1
DESCRIPTION="Unofficial python api for google play"
HOMEPAGE="https://github.com/NoMore201/googleplay-api"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
SLOT="0"
IUSE=""
RDEPEND="dev-python/requests[${PYTHON_USEDEP}]
dev-python/clint[${PYTHON_USEDEP}]
>=dev-python/protobuf-python-3.5.1[${PYTHON_USEDEP}]
|| ( dev-python/pycryptodome[${PYTHON_USEDEP}] dev-python/pycrypto[${PYTHON_USEDEP}] )"
DEPEND="${RDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]"
python_prepare_all() {
# disarm pycryptodome dep to allow || ( pycryptodome pycrypto )
sed -i -e "s|'pycryptodome',||" setup.py || die
distutils-r1_python_prepare_all
}