blob: 6681e9c227a415b82b0e8e5ae6b365776dfe2388 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python{2_7,3_4} )
inherit distutils-r1
DESCRIPTION="A pure Python module for creation and analysis of binary data"
HOMEPAGE="https://python-bitstring.googlecode.com/"
SRC_URI="https://python-bitstring.googlecode.com/files/${P}.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="test"
DEPEND="app-arch/unzip"
RDEPEND=""
python_test() {
if [[ ${EPYTHON} == python2.6 ]]; then
local runner=( unit2.py )
else
local runner=( "${PYTHON}" -m unittest )
fi
pushd test > /dev/null || die
"${runner[@]}" discover || die "Testing failed with ${EPYTHON}"
popd test > /dev/null || die
}
|