Files
guru/dev-python/validators/validators-0.18.2.ebuild
T

34 lines
764 B
Bash
Raw Normal View History

2020-04-25 00:36:19 +02:00
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
2020-08-28 16:30:48 +02:00
PYTHON_COMPAT=( python3_{7,8,9} pypy3 )
2020-04-25 00:36:19 +02:00
inherit distutils-r1
DESCRIPTION="Python Data Validation for Humans"
HOMEPAGE="
https://github.com/kvesteri/validators
https://pypi.org/project/validators
"
2020-04-25 00:36:19 +02:00
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="MIT"
SLOT="0"
RDEPEND="
>=dev-python/decorator-3.4.0[${PYTHON_USEDEP}]
>=dev-python/six-1.4.0[${PYTHON_USEDEP}]
"
2020-08-28 16:30:48 +02:00
python_prepare_all() {
# sphinx.ext.pngmath has been replace in sphinx>2
sed -i -e 's/sphinx.ext.pngmath/sphinx.ext.imgmath/g' docs/conf.py || die
distutils-r1_python_prepare_all
}
2020-04-25 00:36:19 +02:00
distutils_enable_tests pytest
2020-08-28 16:30:48 +02:00
distutils_enable_sphinx docs