commit: dd37e4d1d8d113726d7988fb03df39d3f897ccf1 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> AuthorDate: Thu Feb 17 13:01:48 2022 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Thu Feb 17 21:11:18 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dd37e4d1
dev-python/praw: initial import Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> dev-python/praw/Manifest | 1 + dev-python/praw/metadata.xml | 18 +++++++++++++++++ dev-python/praw/praw-7.5.0.ebuild | 42 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) diff --git a/dev-python/praw/Manifest b/dev-python/praw/Manifest new file mode 100644 index 000000000..e341506c6 --- /dev/null +++ b/dev-python/praw/Manifest @@ -0,0 +1 @@ +DIST praw-7.5.0.tar.gz 24818192 BLAKE2B f65c65ce03df146386537c3a0d1ae188f8627b71f51b5497544723495922a4db5c0f16f971e54158e3da8101fe56d6c3f599676002ae4248d6db1b7ba691a2a4 SHA512 df2da306819df8387c9ad018b0ea886390c065e4d0af1b1b22ae2bfed3d4f612ce2ac2a029c7cee92ea90ca30cc13c7a6640373fd621dc70dd2ac175bea1b4ee diff --git a/dev-python/praw/metadata.xml b/dev-python/praw/metadata.xml new file mode 100644 index 000000000..392afac7a --- /dev/null +++ b/dev-python/praw/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Anna</name> + </maintainer> + <upstream> + <maintainer> + <email>[email protected]</email> + <name>Bryce Boe</name> + </maintainer> + <remote-id type="pypi">praw</remote-id> + <remote-id type="github">praw-dev/praw</remote-id> + <changelog>https://pypi.org/rss/project/praw/releases.xml</changelog> + <doc>https://praw.readthedocs.io</doc> + </upstream> +</pkgmetadata> diff --git a/dev-python/praw/praw-7.5.0.ebuild b/dev-python/praw/praw-7.5.0.ebuild new file mode 100644 index 000000000..ad348c212 --- /dev/null +++ b/dev-python/praw/praw-7.5.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +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}.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_sphinx docs dev-python/sphinx_rtd_theme + +distutils_enable_tests pytest + +python_prepare_all() { + # disable optional dependencies + sed "/update_checker/d" -i setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + # spams deprecation warnings + epytest -p no:asyncio +}
