summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Chary <iksaif@gentoo.org>2012-05-30 06:37:19 +0000
committerCorentin Chary <iksaif@gentoo.org>2012-05-30 06:37:19 +0000
commit8379bf1410d2a56775480c341b1a65182dcf314d (patch)
treee0eb3edf231ce20a074eb6c9086b97398e906495 /dev-python/kombu
parentRemove old. (diff)
downloadhistorical-8379bf1410d2a56775480c341b1a65182dcf314d.tar.gz
historical-8379bf1410d2a56775480c341b1a65182dcf314d.tar.bz2
historical-8379bf1410d2a56775480c341b1a65182dcf314d.zip
New ebuild for kombu.
Package-Manager: portage-2.1.10.63/cvs/Linux x86_64
Diffstat (limited to 'dev-python/kombu')
-rw-r--r--dev-python/kombu/ChangeLog11
-rw-r--r--dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch11
-rw-r--r--dev-python/kombu/kombu-2.1.8.ebuild45
-rw-r--r--dev-python/kombu/metadata.xml12
4 files changed, 79 insertions, 0 deletions
diff --git a/dev-python/kombu/ChangeLog b/dev-python/kombu/ChangeLog
new file mode 100644
index 000000000000..ca015909c699
--- /dev/null
+++ b/dev-python/kombu/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-python/kombu
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/ChangeLog,v 1.1 2012/05/30 06:37:19 iksaif Exp $
+
+*kombu-2.1.8 (30 May 2012)
+
+ 30 May 2012; Corentin Chary <iksaif@gentoo.org>
+ +files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch,
+ +kombu-2.1.8.ebuild, +metadata.xml:
+ New ebuild for kombu.
+
diff --git a/dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch b/dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch
new file mode 100644
index 000000000000..d8a0ccca522b
--- /dev/null
+++ b/dev-python/kombu/files/kombu-2.1.1-add-assertIsInstance-with-unittest.patch
@@ -0,0 +1,11 @@
+--- a/kombu/tests/utils.py 2012-02-07 17:57:27.000000000 +0100
++++ b/kombu/tests/utils.py 2012-02-28 16:09:43.687489572 +0100
+@@ -23,6 +23,8 @@
+
+ if not hasattr(unittest.TestCase, "assertItemsEqual"):
+ assertItemsEqual = unittest.TestCase.assertSameElements
++ if not hasattr(unittest.TestCase, "assertIsInstance"):
++ assertIsInstance = lambda inst, obj, cls: unittest.TestCase.assertTrue(inst, isinstance(obj, cls))
+
+
+ class Mock(mock.Mock):
diff --git a/dev-python/kombu/kombu-2.1.8.ebuild b/dev-python/kombu/kombu-2.1.8.ebuild
new file mode 100644
index 000000000000..639a7f355717
--- /dev/null
+++ b/dev-python/kombu/kombu-2.1.8.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/kombu/kombu-2.1.8.ebuild,v 1.1 2012/05/30 06:37:19 iksaif Exp $
+
+EAPI="4"
+
+PYTHON_DEPEND="*:2.5"
+RESTRICT_PYTHON_ABIS="2.4"
+SUPPORT_PYTHON_ABIS="1"
+DISTUTILS_SRC_TEST="nosetests"
+
+inherit distutils eutils
+
+DESCRIPTION="AMQP Messaging Framework for Python"
+HOMEPAGE="https://github.com/ask/kombu"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=dev-python/anyjson-0.3.1
+ >=dev-python/amqplib-1.0"
+DEPEND="${RDEPEND}
+ test? ( dev-python/nose-cover3 dev-python/mock )
+ dev-python/setuptools"
+
+# If you want to test all transports you also need to depend on:
+# redis, pymongo, couchdb, pika-0.5.2, beanstalkc, kombu-sqlalchemy, django (python2),
+# django-kombu (python2), boto, PyYAML-3.09, etc... it's a mess !
+# Also check setup.py and requirements/ for jython and pypy specific dependencies
+
+src_prepare() {
+ if use test; then
+ epatch "${FILESDIR}/${PN}-2.1.1-add-assertIsInstance-with-unittest.patch"
+ fi
+}
+
+src_test() {
+ testing() {
+ nosetests --py3where build-${PYTHON_ABI}/lib/kombu/tests
+ }
+ python_execute_function testing
+}
diff --git a/dev-python/kombu/metadata.xml b/dev-python/kombu/metadata.xml
new file mode 100644
index 000000000000..6f2225625652
--- /dev/null
+++ b/dev-python/kombu/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <maintainer>
+ <email>iksaif@gentoo.org</email>
+ <name>Corentin Chary</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">kombu</remote-id>
+ </upstream>
+</pkgmetadata>