summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/apipkg/apipkg-1.0_beta6.ebuild')
-rw-r--r--dev-python/apipkg/apipkg-1.0_beta6.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-python/apipkg/apipkg-1.0_beta6.ebuild b/dev-python/apipkg/apipkg-1.0_beta6.ebuild
new file mode 100644
index 000000000000..b448fa039fa2
--- /dev/null
+++ b/dev-python/apipkg/apipkg-1.0_beta6.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/apipkg/apipkg-1.0_beta6.ebuild,v 1.1 2010/10/02 23:18:01 arfrever Exp $
+
+EAPI="3"
+SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="py.test"
+
+inherit distutils
+
+MY_P="${PN}-${PV/_beta/b}"
+
+DESCRIPTION="apipkg: namespace control and lazy-import mechanism"
+HOMEPAGE="http://pypi.python.org/pypi/apipkg"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+DOCS="CHANGELOG README.txt"
+PYTHON_MODNAME="apipkg.py"
+
+src_prepare() {
+ distutils_src_prepare
+
+ # Fix tests with Python 3.
+ sed \
+ -e "s/print (realtest.x.module.__map__)/print((realtest.x.module.__map__))/" \
+ -e "s/print mod.__dict__.keys()/print(list(mod.__dict__.keys()))/" \
+ -i test_apipkg.py
+
+ # Disable failing test.
+ sed -e "s/test_onfirstaccess_setsnewattr/_&/" -i test_apipkg.py
+}