summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-02-27 21:20:48 +0000
committerSam James <sam@gentoo.org>2021-02-27 21:39:20 +0000
commit410c96167901662df104df0aeadf9c53476b8d37 (patch)
tree41523b25dd6f70df25e6618a050cfcdc6e5de428 /dev-python/ws4py/ws4py-9999.ebuild
parentdev-python/whichcraft: add Python 3.9 (diff)
downloadgentoo-410c96167901662df104df0aeadf9c53476b8d37.tar.gz
gentoo-410c96167901662df104df0aeadf9c53476b8d37.tar.bz2
gentoo-410c96167901662df104df0aeadf9c53476b8d37.zip
dev-python/ws4py: add Python 3.9
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/ws4py/ws4py-9999.ebuild')
-rw-r--r--dev-python/ws4py/ws4py-9999.ebuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/dev-python/ws4py/ws4py-9999.ebuild b/dev-python/ws4py/ws4py-9999.ebuild
index 3561e1388c9c..5d471f0ff142 100644
--- a/dev-python/ws4py/ws4py-9999.ebuild
+++ b/dev-python/ws4py/ws4py-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# We could depend on dev-python/cherrypy when USE=server, but
@@ -7,12 +7,14 @@
# pypy is viable but better with a cutdown set of deps
EAPI=7
-PYTHON_COMPAT=( python3_{7,8} )
+
+PYTHON_COMPAT=( python3_{7,8,9} )
PYTHON_REQ_USE="threads(+)?"
MY_PN="WebSocket-for-Python"
inherit distutils-r1
+
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/Lawouach/${MY_PN}.git"
inherit git-r3
@@ -42,11 +44,13 @@ DEPEND="test? (
>=dev-python/mock-1.0.1[${PYTHON_USEDEP}]
)"
-PATCHES=( "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.1-python3.7+-compatibility.patch
+)
python_test() {
# testsuite displays an issue with mock under py3 but is non fatal
- "${PYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
+ "${EPYTHON}" -m unittest discover || die "Tests failed under ${EPYTHON}"
}
python_install() {