dev-python/pymysql: readd py2

This commit is contained in:
nemunaire 2020-05-16 23:32:03 +02:00
parent d983237143
commit 3fd25da589
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST pymysql-0.9.3.tar.gz 86715 BLAKE2B 0ed09f7f5c47bd1fae52dd9d0ff0790367962d8e4b89d3933704b8b8d838e1f48b68455a9a3916318bf3c1c1f102fa11b4e1e3401d021f8a2d6137612a4affb9 SHA512 d906b7a6612d91db7d4f7f2d85a9375477e6655c568e0d1e7281ad0263d4a78f0ac4e80263605723f99e12db04c80f51c5c8ed79ed6f209a7afeb4b45bf40648
EBUILD pymysql-0.9.3.ebuild 683 BLAKE2B 86cddf6a40edc165b8f0146b748c07dbdb65288f451a38d8f0abe0c62cd1e8924101c87e71b83efd24ec59c01326dada3e933df5b6d80cf8b784b4f36f0209d6 SHA512 cc74532f54cbf78619d5773fc5db3d8d80867214fe3cf6e0a525f0b07b29e7ec320e7d1887ef43392df0dad638b5602b8fbecb843bbcc10cbeb9cbf69a199af2

View File

@ -0,0 +1,31 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
inherit distutils-r1
MY_PN="PyMySQL"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Pure-Python MySQL Driver"
HOMEPAGE="https://github.com/PyMySQL/PyMySQL"
SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="test"
S=${WORKDIR}/${MY_P}
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
# While tests exist, they require an unsecure server to run without manual config file
RESTRICT="test"
python_test() {
${PYTHON} runtests.py || die
}