gentoo/dev-python/webencodings/webencodings-0.4.ebuild
Justin Lecher 18aee7e660
dev-python/webencodings: New package, ebuild written by me
Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
2016-01-15 11:25:14 +01:00

37 lines
806 B
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 )
inherit distutils-r1
DESCRIPTION="Character encoding aliases for legacy web content"
HOMEPAGE="https://github.com/SimonSapin/python-webencodings http://pypi.python.org/pypi/webencodings"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="test"
RDEPEND=""
DEPEND="${REDEPEND}
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
# https://github.com/SimonSapin/python-webencodings/issues/2
RESTRICT=test
python_test() {
cat >> setup.cfg <<- EOF
[pytest]
python_files=test*.py
EOF
py.test -v -v || die
}