mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 07:33:19 -04:00
37 lines
821 B
Bash
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
|
|
}
|