dev-python/socketio-client: New ebuild
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
bfc3162ade
commit
90482389a0
1
dev-python/socketio-client/Manifest
Normal file
1
dev-python/socketio-client/Manifest
Normal file
|
@ -0,0 +1 @@
|
||||||
|
DIST socketio-client-0.7.2.tar.gz 23488 BLAKE2B 8c638dcc8ed30fb01a31e36f8175ef7e6b77b37dac0a66f1ef663a372458ccb34bac2ed58fce31a3856eb3d067ad8dc20f7d4a332b2af10ae12717bbb786349f SHA512 850839f804953c706458467c9e35c4c3637d3a61ff55042ef0b6f98e39a277faa97a0a3d7b1e18210e68ec32bb4ca793cd404631e0e2b533e61ad5d05cbc18fa
|
15
dev-python/socketio-client/metadata.xml
Normal file
15
dev-python/socketio-client/metadata.xml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="pypi">socketIO-client</remote-id>
|
||||||
|
<remote-id type="github">invisibleroads/socketIO-client</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>zmedico@gentoo.org</email>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>python@gentoo.org</email>
|
||||||
|
<name>Python</name>
|
||||||
|
</maintainer>
|
||||||
|
</pkgmetadata>
|
45
dev-python/socketio-client/socketio-client-0.7.2.ebuild
Normal file
45
dev-python/socketio-client/socketio-client-0.7.2.ebuild
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
# Copyright 1999-2020 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
PYTHON_COMPAT=( python3_{6,7,8} )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
MY_PN="socketIO-client"
|
||||||
|
DESCRIPTION="A socket.io client library for Python"
|
||||||
|
HOMEPAGE="https://github.com/invisibleroads/socketIO-client/ https://pypi.org/project/socketIO-client/"
|
||||||
|
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
RDEPEND="dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/requests-2.7.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/websocket-client[${PYTHON_USEDEP}]"
|
||||||
|
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? ( ${RDEPEND}
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||||||
|
dev-python/coverage[${PYTHON_USEDEP}]
|
||||||
|
)"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# https://github.com/invisibleroads/socketIO-client/issues/90
|
||||||
|
# This runs the suite but has nill output to the screen
|
||||||
|
# The bug filed will hopefully yield a more conventional testsuite
|
||||||
|
|
||||||
|
# The import of SocketIO need be made with abs path to run the tests
|
||||||
|
sed -e 's:from .. import:from socketIO_client import:' \
|
||||||
|
-i ${REPO_PN}/tests/__init__.py || die
|
||||||
|
|
||||||
|
"${PYTHON}" ${REPO_PN}/tests/__init__.py || die "Tests failed under ${EPYTHON}"
|
||||||
|
|
||||||
|
# Return to original form for final install
|
||||||
|
sed -e 's:from socketIO_client import:from .. import:' \
|
||||||
|
-i ${REPO_PN}/tests/__init__.py || die
|
||||||
|
}
|
Loading…
Reference in a new issue