streamlink-3.0.3.ebuild (1448B)
- # Copyright 1999-2022 Gentoo Authors
- # Distributed under the terms of the GNU General Public License v2
- EAPI=7
- PYTHON_COMPAT=( python3_{8..9} )
- PYTHON_REQ_USE='xml(+),threads(+)'
- DISTUTILS_SINGLE_IMPL=1
- inherit distutils-r1
- DESCRIPTION="CLI for extracting streams from websites to a video player of your choice"
- HOMEPAGE="https://streamlink.github.io/"
- if [[ ${PV} = 9999* ]]; then
- EGIT_REPO_URI="https://github.com/streamlink/${PN}.git"
- inherit git-r3
- else
- SRC_URI="https://github.com/streamlink/${PN}/releases/download/${PV}/${P}.tar.gz"
- KEYWORDS="~amd64 ~x86"
- fi
- LICENSE="BSD-2 Apache-2.0"
- SLOT="0"
- IUSE="test"
- RESTRICT="!test? ( test )"
- DEPEND="
- $(python_gen_cond_dep '
- dev-python/isodate[${PYTHON_USEDEP}]
- >=dev-python/lxml-4.6.4[${PYTHON_USEDEP}]
- dev-python/pycountry[${PYTHON_USEDEP}]
- >=dev-python/pycryptodome-3.4.3[${PYTHON_USEDEP}]
- >=dev-python/PySocks-1.5.8[${PYTHON_USEDEP}]
- >=dev-python/requests-2.26.0[${PYTHON_USEDEP}]
- >=dev-python/websocket-client-1.2.1[${PYTHON_USEDEP}]
- ')
- "
- RDEPEND="${DEPEND}
- media-video/ffmpeg
- "
- BDEPEND="
- $(python_gen_cond_dep '
- test? (
- dev-python/mock[${PYTHON_USEDEP}]
- dev-python/requests-mock[${PYTHON_USEDEP}]
- >=dev-python/freezegun-1.0.0[${PYTHON_USEDEP}]
- dev-python/freezegun[${PYTHON_USEDEP}]
- )
- ')"
- distutils_enable_tests pytest
- python_configure_all() {
- # Avoid iso-639, iso3166 dependencies since we use pycountry.
- export STREAMLINK_USE_PYCOUNTRY=1
- }