2020-01-05 20:54:22 +03:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
2019-11-28 10:07:23 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-07-28 11:52:35 +03:00
|
|
|
PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )
|
2019-11-28 10:07:23 +03:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
|
|
|
DESCRIPTION="Character encoding aliases for legacy web content"
|
|
|
|
HOMEPAGE="https://github.com/SimonSapin/python-webencodings https://pypi.org/project/webencodings/"
|
|
|
|
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="BSD"
|
|
|
|
SLOT="0"
|
2020-04-04 13:15:30 +03:00
|
|
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
2019-11-28 10:07:23 +03:00
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
|
|
|
|
2020-02-23 01:15:17 +03:00
|
|
|
python_prepare_all() {
|
2019-11-28 10:07:23 +03:00
|
|
|
cat >> setup.cfg <<- EOF
|
|
|
|
[tool:pytest]
|
|
|
|
python_files=test*.py
|
|
|
|
EOF
|
|
|
|
distutils-r1_python_prepare_all
|
|
|
|
}
|