mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
dev-python/parsel: extract data from XML/HTML documents
dependency for dev-python/scrapy Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
This commit is contained in:
36
dev-python/parsel/parsel-1.6.0.ebuild
Normal file
36
dev-python/parsel/parsel-1.6.0.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_9 )
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user