aboutsummaryrefslogtreecommitdiff
blob: e0ea557a96cbd98d35bbddcc59f5090d73d78b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4
PYTHON_DEPEND="2"
SUPPORT_PYTHON_ABIS=1
RESTRICT_PYTHON_ABIS="3.*"
#DISTUTILS_SRC_TEST=setup.py
inherit distutils

DESCRIPTION="provides a collection of utilities for working with Excel files"
HOMEPAGE="http://pypi.python.org/pypi/xlutils"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
IUSE=""

LICENSE="MIT"
SLOT="0"

DOCS=( xlutils/readme.txt )

RDEPEND=">=dev-python/xlwt-0.7.3
	>=dev-python/xlrd-0.7.3
	dev-python/errorhandler"
DEPEND="${RDEPEND}
	>=dev-python/testfixtures-1.6.1
	dev-python/mock"

src_test() {
	# https://github.com/python-excel/xlutils/issues/1
	testing() {
		pushd xlutils/tests > /dev/null
		local exit_status=0
		for test in test_*.py
		do
			PYTHONPATH="${S}":"${S}"/xlutils/tests/ nosetests $test
#			nosetests $test
		done
		popd > /dev/null
	}
	python_execute_function testing
}