summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/kitchen/kitchen-1.1.1.ebuild')
-rw-r--r--dev-python/kitchen/kitchen-1.1.1.ebuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-python/kitchen/kitchen-1.1.1.ebuild b/dev-python/kitchen/kitchen-1.1.1.ebuild
new file mode 100644
index 0000000..9a3d44b
--- /dev/null
+++ b/dev-python/kitchen/kitchen-1.1.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+PYTHON_COMPAT=( python2_{6,7} )
+
+inherit distutils-r1
+
+DESCRIPTION="Small, useful pieces of code to make python coding easier"
+HOMEPAGE="https://pypi.python.org/pypi/kitchen/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND="dev-python/chardet[$PYTHON_USEDEP]"
+
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-python/nose dev-python/coverage )"
+
+python_test() {
+ # todo: i18n tests seem to fail
+ rm tests/test_i18n.py
+ # todo: SIGINT test fails in portage for some reason
+ sed -i "/test_send_signal/,/^$/{d}" tests/test_subprocess.py
+ nosetests tests || die "Testuite failed with ${EPYTHON}"
+}