1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python{2_7,3_{6,7,8}} pypy3 )
10 DESCRIPTION="parses CSS3 Selectors and translates them to XPath 1.0"
11 HOMEPAGE="https://cssselect.readthedocs.io/en/latest/
12 https://pypi.org/project/cssselect/
13 https://github.com/scrapy/cssselect"
14 SRC_URI="https://github.com/scrapy/cssselect/archive/v${PV}.tar.gz -> ${P}.tar.gz"
18 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86"
20 RESTRICT="!test? ( test )"
23 dev-python/setuptools[${PYTHON_USEDEP}]
24 test? ( dev-python/lxml[${PYTHON_USEDEP}] )"
26 distutils_enable_sphinx docs
27 distutils_enable_tests unittest