diff options
| author | Michał Górny <mgorny@gentoo.org> | 2021-12-25 08:42:00 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2021-12-25 09:09:28 +0100 |
| commit | 2908591a7e5367c6e777ad87bb4d70f0598c4176 (patch) | |
| tree | 8f09e1c97aec058cba5399ea05c3fe6645e660a3 /dev-python/Pyro4/Pyro4-4.82.ebuild | |
| parent | 2e5d7cd871daa73aef1b8c23089625869694cb7f (diff) | |
| download | gentoo-2908591a7e5367c6e777ad87bb4d70f0598c4176.tar.gz gentoo-2908591a7e5367c6e777ad87bb4d70f0598c4176.tar.bz2 gentoo-2908591a7e5367c6e777ad87bb4d70f0598c4176.zip | |
dev-python/Pyro4: Bump to 4.82
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/Pyro4/Pyro4-4.82.ebuild')
| -rw-r--r-- | dev-python/Pyro4/Pyro4-4.82.ebuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/Pyro4/Pyro4-4.82.ebuild b/dev-python/Pyro4/Pyro4-4.82.ebuild new file mode 100644 index 000000000000..4d1a73752e5c --- /dev/null +++ b/dev-python/Pyro4/Pyro4-4.82.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Distributed object middleware for Python (RPC)" +HOMEPAGE="https://pypi.org/project/Pyro4/ + https://github.com/irmen/Pyro4" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc ~x86" +IUSE="doc examples test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/serpent-1.27[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + >=dev-python/cloudpickle-1.2.1[${PYTHON_USEDEP}] + >=dev-python/dill-0.2.6[${PYTHON_USEDEP}] + >=dev-python/msgpack-0.5.2[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # Disable tests requiring network connection. + rm tests/PyroTests/test_naming.py || die + sed \ + -e "s/testStartNSfunc/_&/" \ + -i tests/PyroTests/test_naming2.py || die + + sed \ + -e "s/testBroadcast/_&/" \ + -e "s/testGetIP/_&/" \ + -i tests/PyroTests/test_socket.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + esetup.py test +} + +python_install_all() { + use doc && HTML_DOCS=( docs/. ) + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |
