1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
10 DESCRIPTION="Fork of MySQL-python"
11 HOMEPAGE="https://pypi.org/project/mysqlclient/ https://github.com/PyMySQL/mysqlclient-python"
12 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux"
20 !dev-python/mysql-python
21 dev-db/mysql-connector-c:0="
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
26 DOCS=( README.md doc/{FAQ,MySQLdb}.rst )
28 python_compile_all() {
29 use doc && sphinx-build -b html doc doc/_build/
32 python_install_all() {
33 use doc && local HTML_DOCS=( doc/_build/. )
34 distutils-r1_python_install_all