aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-04-30 11:31:07 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-04-30 11:36:57 +0200
commite087bd1e62898842843fdf75da3407be13171090 (patch)
treed0f8f806f3f0af13217629307e99d0491376beb6 /www-client/woob/woob-3.0.ebuild
parentwww-servers/hinsightd: new version 0.9.3 (diff)
downloadguru-e087bd1e62898842843fdf75da3407be13171090.tar.gz
guru-e087bd1e62898842843fdf75da3407be13171090.tar.bz2
guru-e087bd1e62898842843fdf75da3407be13171090.zip
www-client/woob: Clean version bump, 3.0
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Diffstat (limited to 'www-client/woob/woob-3.0.ebuild')
-rw-r--r--www-client/woob/woob-3.0.ebuild80
1 files changed, 80 insertions, 0 deletions
diff --git a/www-client/woob/woob-3.0.ebuild b/www-client/woob/woob-3.0.ebuild
new file mode 100644
index 00000000..778d90b8
--- /dev/null
+++ b/www-client/woob/woob-3.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
+
+inherit distutils-r1
+
+if [[ "${PV}" == "9999" ]]
+then
+ EGIT_REPO_URI="https://gitlab.com/woob/woob.git"
+ inherit git-r3
+else
+ SRC_URI="https://gitlab.com/woob/woob/uploads/98647f26717896697b52170cf8bcd301/woob-3.0.tar.gz"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Web Outside Of Browsers (core, site modules and applications)"
+HOMEPAGE="https://woob.tech/"
+LICENSE="LGPL-3+"
+SLOT="0"
+IUSE="test"
+#RESTRICT="!test ( test )"
+
+# setup.cfg + .ci/requirements.txt + .ci/requirements-module.txt
+COMMON_DEPEND="
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/cssselect[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/python-dateutil[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/html2text[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/unidecode[${PYTHON_USEDEP}]
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/Babel[${PYTHON_USEDEP}]
+
+ dev-python/prettytable[${PYTHON_USEDEP}]
+ dev-python/future[${PYTHON_USEDEP}]
+ dev-python/termcolor[${PYTHON_USEDEP}]
+ dev-python/unidecode[${PYTHON_USEDEP}]
+"
+# setup.cfg + .ci/requirements.txt + .ci/requirements-module.txt
+DEPEND="
+ ${COMMON_DEPEND}
+ test? (
+ dev-python/flake8[${PYTHON_USEDEP}]
+ dev-python/xunitparser[${PYTHON_USEDEP}]
+ >=dev-python/coverage-5.1[${PYTHON_USEDEP}]
+
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pyflakes[${PYTHON_USEDEP}]
+ dev-python/asttokens[${PYTHON_USEDEP}]
+
+ dev-python/feedparser[${PYTHON_USEDEP}]
+ dev-python/python-jose[${PYTHON_USEDEP}]
+ dev-python/geopy[${PYTHON_USEDEP}]
+ dev-python/selenium[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${COMMON_DEPEND}"
+
+distutils_enable_tests nose
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/woob.browser.browsers,/d' \
+ -e '/woob.browser.pages,/d' \
+ setup.cfg || die "Failed removing network-dependent tests"
+}
+
+python_install_all() {
+ distutils-r1_python_install_all
+ insinto /usr/share/${PN}/
+ doins -r contrib
+}