diff --git a/dev-python/parsel/Manifest b/dev-python/parsel/Manifest index 266b6a7748..73bd06c19d 100644 --- a/dev-python/parsel/Manifest +++ b/dev-python/parsel/Manifest @@ -1 +1,2 @@ DIST parsel-1.7.0.tar.gz 46036 BLAKE2B e83b5f7f5a7a4274632a38586641be761482c6978670f6c747249d4063f5596bacc42d698d294da1aa9fb972bbaf21cbe3247e49560f1b9c29a3d79eee4dd00a SHA512 850784cfb32fbf619dbcd53152edb569b199965e59f3ec088892a8d432aaf08c1a61f3562499c5c592d9578fb28f871d519e3d7b344e3b7a12fbaaca57909f89 +DIST parsel-1.8.1.tar.gz 50881 BLAKE2B 8d81045e064105d344125e2baf1c769d9a7bddd011c4d544eb7ee0122fc360d74aa8e828bb51ae41fe70fc110f8d449bd1be957372e11ac426427ad85b522b64 SHA512 02101df4e36c704bce8fc24fac4c11beb6f72b6e7196d48c4472acb644620c3672bd6ef9166bac349ba01a4c3e75f5b166ca6f567294f1e3cf4b325a7883dd63 diff --git a/dev-python/parsel/parsel-1.8.1.ebuild b/dev-python/parsel/parsel-1.8.1.ebuild new file mode 100644 index 0000000000..c5c609ae89 --- /dev/null +++ b/dev-python/parsel/parsel-1.8.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 pypi + +DESCRIPTION="Utility to extract data from XML/HTML documents using XPath or CSS selectors" +HOMEPAGE=" + https://scrapy.org/ + https://pypi.org/project/parsel/ + https://github.com/scrapy/parsel +" + +LICENSE="BSD" +SLOT=0 +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/cssselect[${PYTHON_USEDEP}] + dev-python/jmespath[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/w3lib[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/sybil[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +distutils_enable_sphinx docs \ + dev-python/sphinx-notfound-page \ + dev-python/sphinx-rtd-theme + +src_prepare() { + distutils-r1_src_prepare + sed "/pytest-runner/d" -i setup.py || die +} + +python_test() { + epytest --ignore=docs +}