summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild')
-rw-r--r--dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild b/dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild
index 3a6b09c32957..d22f49382751 100644
--- a/dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild
+++ b/dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild,v 1.1 2009/11/28 17:54:40 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild,v 1.2 2009/11/28 18:14:10 arfrever Exp $
EAPI="2"
SUPPORT_PYTHON_ABIS="1"
@@ -17,19 +17,25 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
-IUSE="test"
+IUSE=""
RDEPEND="=dev-python/pysnmp-3*
>=dev-python/twisted-1.3"
-DEPEND="${RDEPEND}
- test? ( dev-python/nose )"
+DEPEND="${RDEPEND}"
RESTRICT_PYTHON_ABIS="3.*"
S="${WORKDIR}/${MY_P}"
+src_prepare() {
+ distutils_src_prepare
+
+ # Disable broken test.
+ sed -e "s/test_tableGetWithStart/_&/" -i test/test_get.py || die "sed failed"
+}
+
src_test() {
testing() {
- PYTHONPATH="build-${PYTHON_ABI}/lib" nosetests-${PYTHON_ABI}
+ PYTHONPATH="build-${PYTHON_ABI}/lib" "$(PYTHON)" test/test.py
}
python_execute_function testing
}