gentoo/dev-python/cloudscraper/cloudscraper-1.2.58.ebuild
Ekaterina Vaartis d045203b0b
dev-python/cloudscraper: Add nodejs as a test dep., fix BDEPEND
The test USE-flag needs to be masked for amd64/x32 where nodejs is
masked.

Closes: https://bugs.gentoo.org/807454
Closes: https://github.com/gentoo/gentoo/pull/21942
Signed-off-by: Ekaterina Vaartis <vaartis@kotobank.ch>
Signed-off-by: Louis Sautier <sbraz@gentoo.org>
2021-08-11 01:03:08 +02:00

41 lines
1014 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1 optfeature
DESCRIPTION="A Python module to bypass Cloudflare's anti-bot page"
HOMEPAGE="https://github.com/VeNoMouS/cloudscraper"
SRC_URI="https://github.com/VeNoMouS/${PN}/archive/${PV}.tar.gz -> ${PF}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/pyparsing[${PYTHON_USEDEP}]
dev-python/requests-toolbelt[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/js2py[${PYTHON_USEDEP}]
dev-python/pytest-forked[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
dev-python/responses[${PYTHON_USEDEP}]
net-libs/nodejs
)
"
distutils_enable_tests pytest
pkg_postinst() {
optfeature "brotli decompresssion support" "dev-python/brotlipy"
optfeature "js2py interpreter support" "dev-python/js2py"
optfeature "node.js interpreter support" "net-libs/nodejs"
}