mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-python/praw: add 7.7.0
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
51
dev-python/praw/praw-7.7.0.ebuild
Normal file
51
dev-python/praw/praw-7.7.0.ebuild
Normal file
@@ -0,0 +1,51 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{9..11} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Python Reddit API Wrapper"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/praw/
|
||||
https://github.com/praw-dev/praw
|
||||
"
|
||||
SRC_URI="https://github.com/praw-dev/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=( {AUTHORS,CHANGES,README}.rst SECURITY.md )
|
||||
|
||||
RDEPEND="
|
||||
<dev-python/prawcore-3[${PYTHON_USEDEP}]
|
||||
dev-python/websocket-client[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="test? (
|
||||
dev-python/betamax[${PYTHON_USEDEP}]
|
||||
dev-python/betamax-matchers[${PYTHON_USEDEP}]
|
||||
)"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
distutils_enable_sphinx docs \
|
||||
dev-python/sphinx-rtd-theme \
|
||||
dev-python/sphinx-rtd-dark-mode
|
||||
|
||||
python_prepare_all() {
|
||||
# disable optional dependencies
|
||||
sed "/update_checker/d" -i setup.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
local epytestargs=(
|
||||
# spams deprecation warnings
|
||||
-p no:asyncio
|
||||
)
|
||||
epytest "${epytestargs[@]}"
|
||||
}
|
||||
Reference in New Issue
Block a user