summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-09-14 08:39:48 +0200
committerMichał Górny <mgorny@gentoo.org>2021-09-14 10:59:06 +0200
commita310b68a885db5191bc086740f93b05ce9d5aeae (patch)
tree0b65946e0964ca4f0c9501591493f7276f72a56e /dev-python/Pyro4
parentdev-python/pypy: Add a subslot check (diff)
downloadgentoo-a310b68a885db5191bc086740f93b05ce9d5aeae.tar.gz
gentoo-a310b68a885db5191bc086740f93b05ce9d5aeae.tar.bz2
gentoo-a310b68a885db5191bc086740f93b05ce9d5aeae.zip
Rename dev-python/{pyro → Pyro4}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/Pyro4')
-rw-r--r--dev-python/Pyro4/Manifest1
-rw-r--r--dev-python/Pyro4/Pyro4-4.80.ebuild59
-rw-r--r--dev-python/Pyro4/metadata.xml13
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/Pyro4/Manifest b/dev-python/Pyro4/Manifest
new file mode 100644
index 000000000000..190cd946887e
--- /dev/null
+++ b/dev-python/Pyro4/Manifest
@@ -0,0 +1 @@
+DIST Pyro4-4.80.tar.gz 515103 BLAKE2B 5d2b69ba020117947a36c9c75f884434a3452167fa2e586e3a5b0e6deb1d0c8c54dd06a20b9568b53a0a6c42a847d880636e3abe37090246d5f34ca84e915b36 SHA512 8e41285674edbe5c8d5ac63e33406c5ff7b6366d5dd251a1755eff81611193278a473ed8b15f995bc0ba2775dc5d316eb6a3cafd63626b95820591ea3a0a92e3
diff --git a/dev-python/Pyro4/Pyro4-4.80.ebuild b/dev-python/Pyro4/Pyro4-4.80.ebuild
new file mode 100644
index 000000000000..017c7345206d
--- /dev/null
+++ b/dev-python/Pyro4/Pyro4-4.80.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7..9} )
+inherit distutils-r1
+
+MY_PN="Pyro4"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Distributed object middleware for Python (RPC)"
+HOMEPAGE="https://pypi.org/project/Pyro4/
+ https://github.com/irmen/Pyro4"
+SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT"
+SLOT="4"
+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[${PYTHON_USEDEP}]
+ >=dev-python/msgpack-0.4.6[${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
+}
diff --git a/dev-python/Pyro4/metadata.xml b/dev-python/Pyro4/metadata.xml
new file mode 100644
index 000000000000..30fa539c40df
--- /dev/null
+++ b/dev-python/Pyro4/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="github">irmen/Pyro4</remote-id>
+ <remote-id type="pypi">Pyro4</remote-id>
+ </upstream>
+</pkgmetadata>