diff options
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/websocket-client/Manifest | 1 | ||||
-rw-r--r-- | dev-python/websocket-client/websocket-client-0.59.0.ebuild | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/websocket-client/Manifest b/dev-python/websocket-client/Manifest index d5a5b4ad62b2..4ca4b12cece6 100644 --- a/dev-python/websocket-client/Manifest +++ b/dev-python/websocket-client/Manifest @@ -1 +1,2 @@ +DIST websocket-client-0.59.0.tar.gz 57897 BLAKE2B 9f15c563491bd105a1987281cc20c0ab80ed1625036eeaa674fd28334b8226b5f9660b150743649f6bc7717d4306cbb1778222f9caeeff29507ab364572ce2b5 SHA512 c7f4a0336093de86fd00828049a836477a3c859cc4bddebd9e7d31eb746dab4de8fa11205a5fb182e5df3590964aa73f279310575dfabc4abc32157e80df42b1 DIST websocket_client-0.58.0.tar.gz 48216 BLAKE2B 5e559852385d95caffa73fdb4bfcddd3e00f7bdc9d23d07e7bd6b9e8de599742e153d31bb3a57bdf1aef02361f5dc0b13a443c21872c27576e068f246102d655 SHA512 c587945831427a9bddef96be53d20fec7f55ffd7efe2b676dac96b8078ba446ecda85379a4edfc49c36de936516d3994cbd0515decb9b615cd969bde1117167a diff --git a/dev-python/websocket-client/websocket-client-0.59.0.ebuild b/dev-python/websocket-client/websocket-client-0.59.0.ebuild new file mode 100644 index 000000000000..691924433e06 --- /dev/null +++ b/dev-python/websocket-client/websocket-client-0.59.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="WebSocket client for python with hybi13 support" +HOMEPAGE="https://github.com/websocket-client/websocket-client" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86 ~x64-macos" +IUSE="examples" + +RDEPEND=" + dev-python/six[${PYTHON_USEDEP}] +" + +distutils_enable_tests setup.py + +src_prepare() { + sed -i -e '1i#!/usr/bin/env python' bin/wsdump.py || die + # Internet + sed -i -e 's:testConnect:_&:' websocket/tests/test_http.py || die + distutils-r1_src_prepare +} + +python_install_all() { + if use examples; then + docompress -x "/usr/share/doc/${PF}/examples" + dodoc -r examples + fi + distutils-r1_python_install_all +} |