Files
guru/dev-python/parsel/parsel-1.6.0.ebuild
Aisha Tammy 0e4de7fd11 dev-python/parsel: disable py3.11
Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
2022-08-14 11:44:31 +00:00

37 lines
821 B
Bash

# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
DESCRIPTION="Utility to extract data from XML/HTML documents using XPath or CSS selectors"
HOMEPAGE="https://scrapy.org/"
SRC_URI="https://github.com/scrapy/parsel/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT=0
KEYWORDS="~amd64"
DEPEND="${PYTHON_DEPS}"
RDEPEND="${DEPEND}
dev-python/cssselect[${PYTHON_USEDEP}]
dev-python/lxml[${PYTHON_USEDEP}]
dev-python/six[${PYTHON_USEDEP}]
dev-python/w3lib[${PYTHON_USEDEP}]
"
BDEPEND="${DEPEND}
test? (
dev-python/sybil[${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}/${PN}-1.6.0-pytest-runner.patch" )
distutils_enable_tests pytest
python_test() {
py.test --ignore=docs || die
}